1. Open the Debug perspective in Eclipse
2. Choose the 'Breakpoints' view tab.
3. Select the 'Add Java Exception Breakpoint' and choose
NullPointerException.
4. Launch your activity, either by using 'Debug As...' or attaching
the debugger to a running instance via DDMS.
5. Execute the offending workflow. It will break on the line that
caused the NPE.


On Apr 1, 12:58 am, Kwang Yi Tan <[EMAIL PROTECTED]> wrote:
> hi,
>
> I went through the notepad tutorial and find that the presentation is
> close a download manager application that i am writing. So I used the
> notepad3 as a skeleton and started putting in my own code. When I
> tried to run it, I got a null pointer exception for my activity. Where
> should I look in eclipse to try to locate the problem? Any help will
> be greatly appreciated.
>
> [2008-04-01 00:42:15 - FileShare] Pushing FileShare.apk to /data/app
> on device 'emulator-tcp-5555'
> [2008-04-01 00:42:16 - FileShare] Starting activity on device:
> com.asu.android.app.fileshare.fileshare
> [2008-04-01 00:42:21 - FileShare] ActivityManager: Starting: Intent
> { comp={com.asu.android.app.fileshare/
> com.asu.android.app.fileshare.fileshare} }
> [2008-04-01 00:42:21 - FileShare] New package not yet registered with
> the system. Waiting 3 seconds before next attempt.
> [2008-04-01 00:42:21 - FileShare] ActivityManager: Error: Activity
> class {com.asu.android.app.fileshare/
> com.asu.android.app.fileshare.fileshare} does not exist.
> [2008-04-01 00:42:24 - FileShare] Starting activity on device:
> com.asu.android.app.fileshare.fileshare
> [2008-04-01 00:42:28 - FileShare] ActivityManager: DDM dispatch reg
> wait timeout
> [2008-04-01 00:42:28 - FileShare] ActivityManager: Can't dispatch DDM
> chunk 48454c4f: no handler defined
> [2008-04-01 00:42:28 - FileShare] ActivityManager: Starting: Intent
> { comp={com.asu.android.app.fileshare/
> com.asu.android.app.fileshare.fileshare} }
>
> and that there will be a force quit message appearing on the emulator
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to