Hi ,
i have the problem with mapview and its showing the following errors
in the logcat.plz help me for finding solution ......
10-30 13:18:19.005: DEBUG/AndroidRuntime(729): Shutting down VM
10-30 13:18:19.015: WARN/dalvikvm(729): threadid=3: thread exiting
with uncaught exception (group=0x40010e28)
10-30 13:18:19.015: ERROR/AndroidRuntime(729): Uncaught handler:
thread main exiting due to uncaught exception
10-30 13:18:19.054: ERROR/AndroidRuntime(729):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.mynewmap/com.mynewmap.MyNewMap}:
android.view.InflateException: Binary XML file line #7: Error
inflating class java.lang.reflect.Constructor
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2140)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2156)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.os.Handler.dispatchMessage(Handler.java:88)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.os.Looper.loop(Looper.java:123)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.main(ActivityThread.java:3742)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Method.invokeNative(Native Method)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Method.invoke(Method.java:515)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
dalvik.system.NativeStart.main(Native Method)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): Caused by:
android.view.InflateException: Binary XML file line #7: Error
inflating class java.lang.reflect.Constructor
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:564)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
227)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.Activity.setContentView(Activity.java:1569)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.mynewmap.MyNewMap.onCreate(MyNewMap.java:11)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1122)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2103)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): ... 11 more
10-30 13:18:19.054: ERROR/AndroidRuntime(729): Caused by:
java.lang.reflect.InvocationTargetException
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.google.android.maps.MapView.<init>(MapView.java:227)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Constructor.constructNative(Native Method)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Constructor.newInstance(Constructor.java:424)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.createView(LayoutInflater.java:499)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): ... 21 more
10-30 13:18:19.054: ERROR/AndroidRuntime(729): Caused by:
java.lang.IllegalArgumentException: MapViews can only be created
inside instances of MapActivity.
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.google.android.maps.MapView.<init>(MapView.java:271)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.google.android.maps.MapView.<init>(MapView.java:244)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): ... 25 more
10-30 13:18:19.083: INFO/Process(55): Sending signal. PID: 729 SIG: 3
10-30 13:18:19.134: INFO/dalvikvm(729): threadid=7: reacting to signal
3
10-30 13:18:19.184: INFO/dalvikvm(729): Wrote stack trace to '/data/
anr/traces.txt'
10-30 13:18:28.425: WARN/ActivityManager(55): Launch timeout has
expired, giving up wake lock!
10-30 13:18:28.816: WARN/ActivityManager(55): Activity idle timeout
for HistoryRecord{434fd508 {com.mynewmap/com.mynewmap.MyNewMap}}
10-30 13:18:33.884: DEBUG/dalvikvm(97): GC freed 918 objects / 47008
bytes in 69ms
10-30 13:18:43.335: INFO/Process(729): Sending signal. PID: 729 SIG: 9
10-30 13:18:43.364: INFO/ActivityManager(55): Process com.mynewmap
(pid 729) has died.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---