I download one google map api sample on android from
http://gmaps-samples.googlecode.com/svn/trunk/articles-android-webmap
. download with svn client.
I run on elicpse, emulator is android 2.2 and 1.1. I did not change
anything.
it start and prompt error:
The application WebMapActivity(Process
com.google.android.examples.webmap)has stopped unexpectedly. Please
try again.
In Cat, the logs are:
06-29 20:30:52.390: INFO/ActivityManager(58): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10000000
cmp=com.google.android.examples.webmap/.WebMapActivity }
06-29 20:30:52.650: INFO/ActivityManager(58): Start proc
com.google.android.examples.webmap for activity
com.google.android.examples.webmap/.WebMapActivity: pid=325 uid=10044
gids={3003, 1015}
06-29 20:30:52.741: DEBUG/AndroidRuntime(319): Shutting down VM
06-29 20:30:52.760: DEBUG/dalvikvm(319): Debugger has detached; object
registry had 1 entries
06-29 20:30:52.830: INFO/AndroidRuntime(319): NOTE: attach of thread
'Binder Thread #3' failed
06-29 20:30:53.851: DEBUG/AndroidRuntime(325): Shutting down VM
06-29 20:30:53.861: WARN/dalvikvm(325): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): FATAL EXCEPTION: main
06-29 20:30:53.881: ERROR/AndroidRuntime(325):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.google.android.examples.webmap/
com.google.android.examples.webmap.WebMapActivity}:
java.lang.NullPointerException
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.os.Looper.loop(Looper.java:123)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.app.ActivityThread.main(ActivityThread.java:4627)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
java.lang.reflect.Method.invokeNative(Native Method)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
java.lang.reflect.Method.invoke(Method.java:521)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
dalvik.system.NativeStart.main(Native Method)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): Caused by:
java.lang.NullPointerException
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
com.google.android.examples.webmap.WebMapActivity.setupWebView(WebMapActivity.java:
34)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
com.google.android.examples.webmap.WebMapActivity.onCreate(WebMapActivity.java:
27)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
06-29 20:30:53.881: ERROR/AndroidRuntime(325): ... 11 more
06-29 20:30:53.890: WARN/ActivityManager(58): Force finishing
activity com.google.android.examples.webmap/.WebMapActivity
06-29 20:30:54.021: WARN/GpsLocationProvider(58): Duplicate add
listener for uid 10044
06-29 20:30:54.401: WARN/ActivityManager(58): Activity pause timeout
for HistoryRecord{4402f4d8
com.google.android.examples.webmap/.WebMapActivity}
06-29 20:31:04.776: WARN/ActivityManager(58): Activity destroy timeout
for HistoryRecord{4402f4d8
com.google.android.examples.webmap/.WebMapActivity}
06-29 20:33:55.020: INFO/Process(325): Sending signal. PID: 325 SIG: 9
06-29 20:33:55.070: INFO/ActivityManager(58): Process
com.google.android.examples.webmap (pid 325) has died.
06-29 20:33:55.070: WARN/GpsLocationProvider(58): Unneeded remove
listener for uid 1000
06-29 20:33:55.122: WARN/InputManagerService(58): Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@43fc5138
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.