Hi, Is it possible to use api of maps.jar as a application library rather than a shared library!
I was able to install a map application on avd profile standard using by removing the line <uses-library android:name="com.google.android.maps"/> in manifest file however when we run it on emulator it says the following error.. not sure if such approach of using maps.jar is allowed or not. 07-15 17:43:46.367: ERROR/AndroidRuntime(810): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tejasoft.mobile.android.maps/ com.tejasoft.mobile.android.maps.GoogleMaps}: java.lang.IllegalStateException: You are only allowed to have a single MapView in a MapActivity 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.os.Handler.dispatchMessage(Handler.java:99) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.os.Looper.loop(Looper.java:123) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.app.ActivityThread.main(ActivityThread.java:3948) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at java.lang.reflect.Method.invokeNative(Native Method) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at java.lang.reflect.Method.invoke(Method.java:521) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at dalvik.system.NativeStart.main(Native Method) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): Caused by: java.lang.IllegalStateException: You are only allowed to have a single MapView in a MapActivity 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at com.google.android.maps.MapActivity.setupMapView(MapActivity.java:180) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at com.google.android.maps.MapView.<init>(MapView.java:279) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at com.google.android.maps.MapView.<init>(MapView.java:225) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at com.tejasoft.mobile.android.maps.GoogleMaps.onCreate(GoogleMaps.java: 19) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) 07-15 17:43:46.367: ERROR/AndroidRuntime(810): ... 11 more --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---