|
Re: resolving "Source not found" error message during debugging [message #507015 is a reply to message #506688] |
Mon, 11 January 2010 11:58 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
On 1/8/10 1:54 PM, oregonduckman wrote:
> I am doing Android development on a Mac with Eclipse and have the
> skeleton for an app that implements the standard framework callbacks
> (onCreate, onDestroy, onPause, etc..). When I set breakpoints in the
> callbacks the debugger stops and displays a tab that says:
>
> " ActivityThread.performLaunchActivity(ActivityThread$Activity
> Record,Intent)line:2477 " and in the tab page body there is some red
> text that says "Source not found" and a button that says "Edit Source
> Lookup Path...".
>
> I have tried adding several paths via "Edit Source Lookup Path..." but
> can't see to find the one Eclipse is looking for.
> Can anyone point me in the right direction?
You'll need to figure out which library (JAR) the ActivityThread class
is coming from and then find or obtain the source for it. If it's part
of Android then I'm surprised that the source wouldn't be included
automatically - perhaps your project is not set up correctly.
Sorry, but I haven't used the Android SDK so I can't say for certain.
But generally speaking, if an SDK includes the source for its libraries
and your project is created/set up correctly, source lookup "just works."
Hope this helps,
Eric
|
|
|
|
Re: resolving "Source not found" error message during debugging [message #654607 is a reply to message #654510] |
Wed, 16 February 2011 13:29 |
|
And yet, this isn't an Android support forum except to the extent that
you have specific trouble with Eclipse, setting it up, etc. The best
Android support forums I've found are noted here:
http://www.javahotchocolate.com/tutorials/android.html#suppo rt
On 2011.02.15 23:57, Pham Vu Duong wrote:
> Hi friends,
> I have the same bug, too.
>
> But I'm not sure it's because of lack of jar library.
>
> I use many similar code in my source code but only one has problem:
>
> menuNews = findViewById(R.id.menuNews);
> menuNews.setOnClickListener(new View.OnClickListener() {
>
> @Override
> public void onClick(View v) {
> MyInfo.this.finish();
> Intent intent = new Intent (MyInfo.this, TheNews.class);
> intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
> startActivity(intent);
> }
>
> });
> menuMap = findViewById(R.id.menuMap);
> menuMap.setOnClickListener (new View.OnClickListener() {
>
> @Override
> public void onClick(View v) {
> MyInfo.this.finish();
> Intent intent = new Intent (MyInfo.this,MyMap.class);
> intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
> startActivity(intent);
>
> }
>
> });
> menuGift = findViewById(R.id.menuGift);
> menuGift.setOnClickListener (new View.OnClickListener() {
>
> @Override
> public void onClick(View v) {
> MyInfo.this.finish();
> Intent intent = new Intent (MyInfo.this, MyGift.class);
> intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
> startActivity(intent);
> }
>
> });
>
>
> As you can see, I have 3 menu buttons. It runs well if I push the first
> two buttons (News and Map). But the app is forced to stop when I clicked
> on the third menu button Gift.
>
> I switch the Map and Gift (call Gift when clicking Map button and call
> Map when clicking Gift button), the app stop when clicking Map button.
>
> So something wrong with the Gift screen.
>
> Then I check the MyGift class, the three class have the same constructor
> and methods:
>
> - MyMap:
>
> public void onCreate(Bundle savedInstanceState) {
> requestWindowFeature(Window.FEATURE_NO_TITLE);
> super.onCreate(savedInstanceState);
> setContentView (R.layout.my_map);
>
> //....
> }
> protected void onResume() {
> super.onResume();
> //...
> }
>
>
> - MyGift:
>
> public void onCreate(Bundle savedInstanceState) {
> requestWindowFeature(Window.FEATURE_NO_TITLE);
> super.onCreate(savedInstanceState);
> setContentView(R.layout.my_gift);
>
> //....
> }
> protected void onResume() {
> super.onResume();
> //...
> }
>
>
> Could anyone please explain this?
> Thank you very much.
>
> Duong.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.10357 seconds