View Single Post
  #1 (permalink)  
Old January 30th, 2009, 06:09 PM
sunrain sunrain is offline
Authorized User
 
Join Date: Nov 2006
Location: , , .
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 6 Sample Earthquake 2

Hello,

I get the following error when I click on a specific earthquake from the list of quakes: "The application com.paad.earthquake (process com.paad.earthquake) has stopped unexpectedly. Please try again."

The Logs show the following:

Code:
01-30 17:01:02.452: WARN/WindowManager(52): Attempted to add window with non-application token WindowToken{4345d4f8 token=null}.  Aborting.
01-30 17:01:02.462: DEBUG/AndroidRuntime(204): Shutting down VM
01-30 17:01:02.462: WARN/dalvikvm(204): threadid=3: thread exiting with uncaught exception (group=0x40010e28)
01-30 17:01:02.471: ERROR/AndroidRuntime(204): Uncaught handler: thread main exiting due to uncaught exception
01-30 17:01:02.502: ERROR/AndroidRuntime(204): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.view.ViewRoot.setView(ViewRoot.java:388)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:90)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.app.Dialog.show(Dialog.java:212)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.app.Activity.showDialog(Activity.java:2279)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at com.paad.earthquake.Earthquake$1.onItemClick(Earthquake.java:72)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.widget.AdapterView.performItemClick(AdapterView.java:283)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.widget.ListView.performItemClick(ListView.java:3049)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.widget.AbsListView$PerformClick.run(AbsListView.java:1415)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.os.Handler.handleCallback(Handler.java:542)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.os.Handler.dispatchMessage(Handler.java:86)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.os.Looper.loop(Looper.java:123)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at android.app.ActivityThread.main(ActivityThread.java:3742)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at java.lang.reflect.Method.invokeNative(Native Method)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at java.lang.reflect.Method.invoke(Method.java:515)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
01-30 17:01:02.502: ERROR/AndroidRuntime(204):     at dalvik.system.NativeStart.main(Native Method)
I am using the latest version of the sample code. Any reasons why?

Thanks!
Reply With Quote