Unable start MapActivity

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Unable start MapActivity

Postby zico » Wed May 13, 2009 5:53 pm

Hi.
I've a serious problem with MapActivity. I've tryied it in an android application as a single class and it works but when i've include it in an another project it doesn't start.
i launch it with on button click like that

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Intent i = new Intent(v.getContext(), simpleGoogleMaps.class);
  2.  
  3. v.getContext().startActivity(i);
Parsed in 0.043 seconds, using GeSHi 1.0.8.4


i've added in my manifest all permission and use-library i hope :(
I'm using JDK 1.1

Please Help Me :(

and this is the log error

05-13 18:32:58.160: WARN/Maps_Persistence(1130): Couldn't find file: /data/data/com.TaxiNode/files/DATA_Preferences
05-13 18:32:58.210: WARN/Maps_Persistence(1130): Couldn't find file: /data/data/com.TaxiNode/files/DATA_Tiles
05-13 18:32:58.230: WARN/Maps(1130): Couldn't restore map info, data == null
05-13 18:32:58.330: DEBUG/AndroidRuntime(1130): Shutting down VM
05-13 18:32:58.330: WARN/dalvikvm(1130): threadid=3: thread exiting with uncaught exception (group=0x4000fe68)
05-13 18:32:58.330: ERROR/AndroidRuntime(1130): Uncaught handler: thread main exiting due to uncaught exception
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.TaxiNode/de.michaelhuebl.android.simpleGoogleMaps}: java.lang.ClassCastException: android.widget.Button
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2157)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.app.ActivityThread.access$1800(ActivityThread.java:112)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.os.Handler.dispatchMessage(Handler.java:88)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.os.Looper.loop(Looper.java:123)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.app.ActivityThread.main(ActivityThread.java:3739)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at java.lang.reflect.Method.invokeNative(Native Method)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at java.lang.reflect.Method.invoke(Method.java:515)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at dalvik.system.NativeStart.main(Native Method)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): Caused by: java.lang.ClassCastException: android.widget.Button
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at de.michaelhuebl.android.simpleGoogleMaps.onCreate(simpleGoogleMaps.java:66)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2104)
05-13 18:32:58.350: ERROR/AndroidRuntime(1130): ... 11 more
zico
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Apr 27, 2009 8:14 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests