Debug Question

by nhboy » Tue, 04 Nov 2008 23:32:09 GMT

Sponsored Links
 Hello everyone. I have what seems to be a simple question but I can't
seem to find any helpful discussions on it. Using Eclipse is there a
way to set a break point in the lower level libraries like skia, sgl
and freetype?
If so can you point me in the right direction?

If not can I insert printfs in the source code for these libraries and
somehow see the output in some shell? I guess in general how does one
debug these lower level libs?



Debug Question

by Ian luo » Mon, 10 Nov 2008 16:33:29 GMT

 Hi nhboy:

This exercise may give you some information maybe help you 


From: "nhboy" <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2008 4:46 AM
To: "Android Beginners" <>
Subject: [android-beginners] Debug Question


Sponsored Links

Debug question

by mh » Sun, 01 Nov 2009 08:11:00 GMT

 After much screwing around with configuration settings I finally got
Eclipse to recognize and attach to a tethered MyTouch for debugging.

The problem now is that before running the debugger I have to manually
push the build to the device in order for the debugger to launch it.
If I do not first manually install the file on the device it does not
get uploaded and I see the following errors in the android console

[2009-10-31 16:54:05 - MyApp]Starting activity on
[2009-10-31 16:54:06 - MyApp]New package not yet registered with the
system. Waiting 3 seconds before next attempt.
[2009-10-31 16:54:09 - MyApp]Starting activity on
[2009-10-31 16:54:11 - MyApp]New package not yet registered with the
system. Waiting 3 seconds before next attempt.
[2009-10-31 16:54:14 - MyApp]Starting activity on
[2009-10-31 16:54:15 - MyApp]ActivityManager: Starting: Intent
[2009-10-31 16:54:15 - MyApp]ActivityManager: Error type 3
[2009-10-31 16:54:15 - MyApp]ActivityManager: Error: Activity class
{} does not exist.

If the file exists then the debugger attaches and breakpoints work but
the old image is the one that is always connected to as automatic
uploads still do not happen upon rebuild/redeploy.

I have tried turning USB storage on and off but that does not work

Am I missing an address setting or checkbox somewhere?


Debug question

by mh » Sun, 01 Nov 2009 08:20:00 GMT

 One additional data point.  The line:

[2009-10-31 17:13:10 - MyApp]Application already deployed. No need to

appears at the beginning of a launch.  The application is *not* seen
under Manage Applications on the device nor does it appear anywhere as
a background [hidden] task.


Debug question

by Roland » Sun, 01 Nov 2009 11:33:48 GMT

 When I experienced this problem, the solution for me to was to do a
project clean and rebuild the entire project.  Then the app would load
properly from the Eclipse debug launch.



Other Threads

1. Notification.FLAG_NO_CLEAR not working as expected

I'm setting my notification like this:

        notification.defaults |= Notification.FLAG_NO_CLEAR;

I expect this to mean that pressing the "clear" button in the expanded
notification screen will not clear this notification. But the button
still clears the notification.

I think this may be a permissions problem in my manifest. I currently
have a uses permission "android.permission.VIBRATE" set. Do I need any
other permissions to make a notification sticky?


2. gps icon disappears

I am using the GPS and something I do in my program causes the GPS icon in
the notification area of my phone to disappear for a few seconds then come
back, then disappear again.  None of the other GPS programs I use have this
"problem"... if it is actually a problem.  I've read all kinds
of articles about the GPS icon staying on after the program exits, but I
can't find anything about it disappearing while the application is using it.

What causes the GPS icon to disappear?



3. Get return value from javascript.

4. null intent returned in onActivityResult

5. Dev. tools are good enough except emulator is unusable for file i/o.

6. Android 2d canvas game: FPS Jitter problem

7. Calling onResume in Activity