question

Peter P. Liaw avatar image
Peter P. Liaw asked

crash during startup of MapActivity

I have replaced all references to Google Maps API with Amazon Maps API, and am seeing the following crash on the Kindle Fire HD. Is there source code available so I can see what line 20 or MapActivity is trying to do? I/ActivityManager( 206): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.aws.android cmp=com.aws.android/.Typhoon} from pid 524 D/dalvikvm( 3377): Late-enabling CheckJNI I/ActivityManager( 206): Start proc com.aws.android for activity com.aws.android/.Typhoon: pid=3377 uid=10020 gids={3003, 1015} I/dalvikvm( 3377): Turning on JNI app bug workarounds for target SDK version 4... D/dalvikvm( 3377): GC_CONCURRENT freed 171K, 2% free 10926K/11143K, paused 2ms+1ms I/ActivityThread( 3377): Pub com.aws.searchauthority.prefix.locationQuery: com.aws.android.lib.search.LocationSuggestionProvider I/ActivityThread( 3377): Pub com.aws.android.AdMarvelLocalFileContentProvider: com.admarvel.android.ads.AdMarvelLocalFileContentProvider I/ActivityThread( 3377): Pub com.aws.android.weatherbug.prefix.weatherprovider: com.aws.android.content.WeatherContentProvider D/dalvikvm( 3377): GC_CONCURRENT freed 146K, 3% free 11278K/11527K, paused 1ms+2ms D/AndroidRuntime( 3377): Shutting down VM W/dalvikvm( 3377): threadid=1: thread exiting with uncaught exception (group=0x40a751f8) E/AndroidRuntime( 3377): FATAL EXCEPTION: main E/AndroidRuntime( 3377): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.aws.android/com.aws.android.Typhoon}: java.lang.RuntimeException: Stub! E/AndroidRuntime( 3377): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1918) E/AndroidRuntime( 3377): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2019) E/AndroidRuntime( 3377): at android.app.ActivityThread.access$600(ActivityThread.java:126) E/AndroidRuntime( 3377): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158) E/AndroidRuntime( 3377): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 3377): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 3377): at android.app.ActivityThread.main(ActivityThread.java:4491) E/AndroidRuntime( 3377): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 3377): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 3377): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/AndroidRuntime( 3377): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime( 3377): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 3377): Caused by: java.lang.RuntimeException: Stub! E/AndroidRuntime( 3377): at com.amazon.geo.maps.MapActivity. (MapActivity.java:20) E/AndroidRuntime( 3377): at com.aws.android.Typhoon. (Typhoon.java:105) E/AndroidRuntime( 3377): at java.lang.Class.newInstanceImpl(Native Method) E/AndroidRuntime( 3377): at java.lang.Class.newInstance(Class.java:1319) E/AndroidRuntime( 3377): at android.app.Instrumentation.newActivity(Instrumentation.java:1023) E/AndroidRuntime( 3377): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1909) E/AndroidRuntime( 3377): ... 11 more W/ActivityManager( 206): Force finishing activity com.aws.android/.Typhoon W/ActivityManager( 206): Force finishing activity com.amazon.kindle.otter/.activities.AppsLibraryActivity
amazon maps
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Samuel@Amazon avatar image
Samuel@Amazon answered
Hi Peter, Can you please submit a contact us( https://developer.amazon.com/help/contactus.html) for this issue. One of our support engineers will assist you in this. Thank you.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

IanW@Amazon avatar image
IanW@Amazon answered
For others experiencing this issue, the .jar file for the Amazon Maps API contains stub implementations. See the information about the error message "java.lang.RuntimeException: Stub!" at https://developer.amazon.com/sdk/maps/faq.html#troubleshooting.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.