I am getting a force close error when i start application in emulator through eclipse, later my app will run.. what is the reason for this?
Here is the image
Log Messages:
12-23 12:33:12.488: E/Zygote(33): setreuid() failed. errno: 2 12-23
12:33:18.518: E/Zygote(33): setreuid() failed. errno: 17 12-23
12:33:19.558: E/BatteryService(59): usbOnlinePath not found 12-23
12:33:19.558: E/BatteryService(59): batteryVoltagePath not found 12-23
12:33:19.558: E/BatteryService(59): batteryTemperaturePath not found
12-23 12:33:19.578: E/SurfaceFlinger(59): Couldn't open
/sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake 12-23
12:33:24.268: E/EventHub(59): could not get driver version for
/dev/input/mouse0, Not a typewriter 12-23 12:33:24.268:
E/EventHub(59): could not get driver version for /dev/input/mice, Not
a typewriter 12-23 12:33:24.519: E/System(59): Failure starting core
service 12-23 12:33:24.519: E/System(59): java.lang.SecurityException
12-23 12:33:24.519: E/System(59): at
android.os.BinderProxy.transact(Native Method) 12-23 12:33:24.519:
E/System(59): at
android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-23 12:33:24.519: E/System(59): at
android.os.ServiceManager.addService(ServiceManager.java:72) 12-23
12:33:24.519: E/System(59): at
com.android.server.ServerThread.run(SystemServer.java:184) 12-23
12:33:25.609: E/SoundPool(59): error loading
/system/media/audio/ui/Effect_Tick.ogg 12-23 12:33:25.609:
E/SoundPool(59): error loading
/system/media/audio/ui/KeypressStandard.ogg 12-23 12:33:25.618:
E/SoundPool(59): error loading
/system/media/audio/ui/KeypressSpacebar.ogg 12-23 12:33:25.618:
E/SoundPool(59): error loading
/system/media/audio/ui/KeypressDelete.ogg 12-23 12:33:25.618:
E/SoundPool(59): error loading
/system/media/audio/ui/KeypressReturn.ogg 12-23 12:33:27.728:
E/ThrottleService(59): Could not open GPS configuration file
/etc/gps.conf 12-23 12:33:28.447: E/logwrapper(140): executing
/system/bin/tc failed: No such file or directory 12-23 12:33:28.469:
E/logwrapper(142): executing /system/bin/tc failed: No such file or
directory 12-23 12:33:28.629: E/logwrapper(145): executing
/system/bin/tc failed: No such file or directory 12-23 12:33:32.568:
E/AndroidRuntime(122): FATAL EXCEPTION: main 12-23 12:33:32.568:
E/AndroidRuntime(122): java.lang.RuntimeException: Unable to start
activity
ComponentInfo{com.android.launcher/com.android.launcher2.Launcher}:
android.content.res.Resources$NotFoundException: Resource ID
0x7f030009 12-23 12:33:32.568: E/AndroidRuntime(122): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
12-23 12:33:32.568: E/AndroidRuntime(122): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
12-23 12:33:32.568: E/AndroidRuntime(122): at
android.app.ActivityThread.access$2300(ActivityThread.java:125) 12-23
12:33:32.568: E/AndroidRuntime(122): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
12-23 12:33:32.568: E/AndroidRuntime(122): at
android.os.Handler.dispatchMessage(Handler.java:99) 12-23
12:33:32.568: E/AndroidRuntime(122): at
android.os.Looper.loop(Looper.java:123) 12-23 12:33:32.568:
E/AndroidRuntime(122): at
android.app.ActivityThread.main(ActivityThread.java:4627) 12-23
12:33:32.568: E/AndroidRuntime(122): at
java.lang.reflect.Method.invokeNative(Native Method) 12-23
12:33:32.568: E/AndroidRuntime(122): at
java.lang.reflect.Method.invoke(Method.java:521) 12-23 12:33:32.568:
E/AndroidRuntime(122): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-23 12:33:32.568: E/AndroidRuntime(122): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 12-23
12:33:32.568: E/AndroidRuntime(122): at
dalvik.system.NativeStart.main(Native Method) 12-23 12:33:32.568:
E/AndroidRuntime(122): Caused by:
android.content.res.Resources$NotFoundException: Resource ID
0x7f030009 12-23 12:33:32.568: E/AndroidRuntime(122): at android.content.res.Resources.getValue(Resources.java:892) 12-23
12:33:32.568: E/AndroidRuntime(122): at
android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
12-23 12:33:32.568: E/AndroidRuntime(122): at
android.content.res.Resources.getLayout(Resources.java:731) 12-23
12:33:32.568: E/AndroidRuntime(122): at
android.view.LayoutInflater.inflate(LayoutInflater.java:318) 12-23
12:33:32.568: E/AndroidRuntime(122): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276) 12-23
12:33:32.568: E/AndroidRuntime(122): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
12-23 12:33:32.568: E/AndroidRuntime(122): at
android.app.Activity.setContentView(Activity.java:1647) 12-23
12:33:32.568: E/AndroidRuntime(122): at
com.android.launcher2.Launcher.onCreate(Launcher.java:236) 12-23
12:33:32.568: E/AndroidRuntime(122): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-23 12:33:32.568: E/AndroidRuntime(122): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
12-23 12:33:32.568: E/AndroidRuntime(122): ... 11 more 12-23
12:33:41.994: E/HierarchicalStateMachine(59): TetherMaster -
unhandledMessage: msg.what=3
Also once i close and start the emulator my app will not launch at all, for this i need to close eclipse and start again. what is the reason for this?
Issue is related to emulator, delete the existing one and you just create new virtual emulator properly give adequate memories. that's all..
The error should be:
12:33:32.568: E/AndroidRuntime(122): FATAL EXCEPTION: main 12-23
12:33:32.568: E/AndroidRuntime(122): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.android.launcher/com.android.launcher2.Launcher}:
android.content.res.Resources$NotFoundException: Resource ID
Try to debug the activity Launcher, maybe the error should be in onCreate() or in onResume(). Otherwise you can try a clean project but I don't think that changes something.
Related
i have a project using fr.northborders.AnimationPlayground to draw svg
when i add another library like Android-Bootstrapor MaterialDesignLibrary to project it will crash in runtime.
12-23 13:51:11.984: E/dalvikvm(4817): Could not find class 'fr.northborders.AnimationPlayground.FragmentAnimation.FragmentAnimationActivity', referenced from method fr.northborders.AnimationPlayground.Main.MainActivity.startDynamicForm
12-23 13:51:20.879: E/AndroidRuntime(4817): FATAL EXCEPTION: main
12-23 13:51:20.879: E/AndroidRuntime(4817): java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.northborders.AnimationPlayground/fr.northborders.AnimationPlayground.DrawPathSvg.DrawPathSvgActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class fr.northborders.AnimationPlayground.DrawPathSvg.SvgView
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.access$600(ActivityThread.java:162)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.os.Handler.dispatchMessage(Handler.java:107)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.os.Looper.loop(Looper.java:194)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.main(ActivityThread.java:5371)
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 13:51:20.879: E/AndroidRuntime(4817): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
12-23 13:51:20.879: E/AndroidRuntime(4817): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
12-23 13:51:20.879: E/AndroidRuntime(4817): at dalvik.system.NativeStart.main(Native Method)
12-23 13:51:20.879: E/AndroidRuntime(4817): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class fr.northborders.AnimationPlayground.DrawPathSvg.SvgView
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.DrawPathSvgActivity.addSvgView(DrawPathSvgActivity.java:33)
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.DrawPathSvgActivity.onCreate(DrawPathSvgActivity.java:28)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.Activity.performCreate(Activity.java:5122)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1084)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
12-23 13:51:20.879: E/AndroidRuntime(4817): ... 11 more
12-23 13:51:20.879: E/AndroidRuntime(4817): Caused by: java.lang.reflect.InvocationTargetException
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Constructor.constructNative(Native Method)
12-23 13:51:20.879: E/AndroidRuntime(4817): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
12-23 13:51:20.879: E/AndroidRuntime(4817): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
12-23 13:51:20.879: E/AndroidRuntime(4817): ... 20 more
12-23 13:51:20.879: E/AndroidRuntime(4817): Caused by: java.lang.VerifyError: fr/northborders/AnimationPlayground/Utils/SvgHelper
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.SvgView.<init>(SvgView.java:32)
12-23 13:51:20.879: E/AndroidRuntime(4817): at fr.northborders.AnimationPlayground.DrawPathSvg.SvgView.<init>(SvgView.java:52)
12-23 13:51:20.879: E/AndroidRuntime(4817): ... 23 more
after i tried a lot to fix this problem i figured out that the library res will not compile with project which i don't understand but i just merged all library projects together in new project (like copy all resource value drawable style and everything related).
now its work like a charm! :)
I was trying a sample android code but it gives fatal error when I try to work. Logcat message is below:
12-23 10:23:47.436: E/AndroidRuntime(14565): FATAL EXCEPTION: main
12-23 10:23:47.436: E/AndroidRuntime(14565): Process: com.example.proje, PID: 14565
12-23 10:23:47.436: E/AndroidRuntime(14565): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.proje/com.example.proje.ActivityMain}: java.lang.NullPointerException
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.ActivityThread.access$900(ActivityThread.java:161)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.os.Handler.dispatchMessage(Handler.java:102)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.os.Looper.loop(Looper.java:157)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.ActivityThread.main(ActivityThread.java:5356)
12-23 10:23:47.436: E/AndroidRuntime(14565): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 10:23:47.436: E/AndroidRuntime(14565): at java.lang.reflect.Method.invoke(Method.java:515)
12-23 10:23:47.436: E/AndroidRuntime(14565): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
12-23 10:23:47.436: E/AndroidRuntime(14565): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
12-23 10:23:47.436: E/AndroidRuntime(14565): at dalvik.system.NativeStart.main(Native Method)
12-23 10:23:47.436: E/AndroidRuntime(14565): Caused by: java.lang.NullPointerException
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.Activity.findViewById(Activity.java:1970)
12-23 10:23:47.436: E/AndroidRuntime(14565): at com.example.proje.ActivityMain.<init>(ActivityMain.java:20)
12-23 10:23:47.436: E/AndroidRuntime(14565): at java.lang.Class.newInstanceImpl(Native Method)
12-23 10:23:47.436: E/AndroidRuntime(14565): at java.lang.Class.newInstance(Class.java:1208)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2222)
12-23 10:23:47.436: E/AndroidRuntime(14565): ... 11 more
12-23 10:23:47.436: E/AndroidRuntime(14565): Caused by: java.lang.NullPointerException
12-23 10:23:47.436: E/AndroidRuntime(14565): at android.app.Activity.findViewById(Activity.java:1970)
12-23 10:23:47.436: E/AndroidRuntime(14565): at com.example.proje.ActivityMain.<init>
You're calling findViewById() too early, in object initialization phase such as constructor or member variables initialization. You cannot call any activity methods like findViewById() before onCreate(). Move the call to onCreate(). Also place it after setContentView() so you can get a non-null value.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I already generated API key by giving the MD5 fingureprint from here
https://code.google.com/apis/console/?noredirect#project:413913157166:access
but after running the android application i got error message Unfortunately,(ProjectName) has been stopped Android in the emulator
Need Help.. Thanks in advance
here is my logcat
t. Please make sure your kernel is compiled with file capabilities support enabled.
12-23 01:06:40.713: W/dalvikvm(1663): PR_CAPBSET_DROP 33 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
12-23 01:06:40.744: D/dalvikvm(1663): Not late-enabling CheckJNI (already on)
12-23 01:06:44.634: D/dalvikvm(1663): GC_FOR_ALLOC freed 243K, 11% free 2773K/3104K, paused 41ms, total 47ms
12-23 01:06:44.634: W/CursorWrapperInner(1663): Cursor finalized without prior close()
12-23 01:06:44.645: W/CursorWrapperInner(1663): Cursor finalized without prior close()
12-23 01:06:44.724: D/AndroidRuntime(1663): Shutting down VM
12-23 01:06:44.744: W/dalvikvm(1663): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:06:44.824: E/AndroidRuntime(1663): FATAL EXCEPTION: main
12-23 01:06:44.824: E/AndroidRuntime(1663): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.os.Looper.loop(Looper.java:137)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:06:44.824: E/AndroidRuntime(1663): at dalvik.system.NativeStart.main(Native Method)
12-23 01:06:44.824: E/AndroidRuntime(1663): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:06:44.824: E/AndroidRuntime(1663): ... 11 more
12-23 01:06:44.824: E/AndroidRuntime(1663): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-1, /vendor/lib, /system/lib]]
12-23 01:06:44.824: E/AndroidRuntime(1663): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:06:44.824: E/AndroidRuntime(1663): ... 21 more
12-23 01:06:54.994: I/Process(1663): Sending signal. PID: 1663 SIG: 9
12-23 01:08:58.434: D/dalvikvm(1820): GC_FOR_ALLOC freed 250K, 11% free 2766K/3104K, paused 67ms, total 76ms
12-23 01:08:58.434: W/CursorWrapperInner(1820): Cursor finalized without prior close()
12-23 01:08:58.464: W/CursorWrapperInner(1820): Cursor finalized without prior close()
12-23 01:08:58.624: D/AndroidRuntime(1820): Shutting down VM
12-23 01:08:58.624: W/dalvikvm(1820): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:08:58.714: E/AndroidRuntime(1820): FATAL EXCEPTION: main
12-23 01:08:58.714: E/AndroidRuntime(1820): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.os.Looper.loop(Looper.java:137)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:08:58.714: E/AndroidRuntime(1820): at dalvik.system.NativeStart.main(Native Method)
12-23 01:08:58.714: E/AndroidRuntime(1820): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:08:58.714: E/AndroidRuntime(1820): ... 11 more
12-23 01:08:58.714: E/AndroidRuntime(1820): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-2, /vendor/lib, /system/lib]]
12-23 01:08:58.714: E/AndroidRuntime(1820): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:08:58.714: E/AndroidRuntime(1820): ... 21 more
12-23 01:09:10.654: I/Process(1820): Sending signal. PID: 1820 SIG: 9
12-23 01:16:40.084: D/dalvikvm(1913): GC_FOR_ALLOC freed 229K, 11% free 2786K/3104K, paused 47ms, total 52ms
12-23 01:16:40.084: W/CursorWrapperInner(1913): Cursor finalized without prior close()
12-23 01:16:40.095: W/CursorWrapperInner(1913): Cursor finalized without prior close()
12-23 01:16:40.114: D/AndroidRuntime(1913): Shutting down VM
12-23 01:16:40.114: W/dalvikvm(1913): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:16:40.146: E/AndroidRuntime(1913): FATAL EXCEPTION: main
12-23 01:16:40.146: E/AndroidRuntime(1913): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class activity
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.os.Looper.loop(Looper.java:137)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:16:40.146: E/AndroidRuntime(1913): at dalvik.system.NativeStart.main(Native Method)
12-23 01:16:40.146: E/AndroidRuntime(1913): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class activity
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:16:40.146: E/AndroidRuntime(1913): ... 11 more
12-23 01:16:40.146: E/AndroidRuntime(1913): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.activity" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-1, /vendor/lib, /system/lib]]
12-23 01:16:40.146: E/AndroidRuntime(1913): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:652)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)
12-23 01:16:40.146: E/AndroidRuntime(1913): ... 21 more
12-23 01:16:46.515: I/Process(1913): Sending signal. PID: 1913 SIG: 9
12-23 01:25:04.063: D/dalvikvm(1967): GC_FOR_ALLOC freed 232K, 11% free 2784K/3104K, paused 30ms, total 36ms
12-23 01:25:04.063: W/CursorWrapperInner(1967): Cursor finalized without prior close()
12-23 01:25:04.073: W/CursorWrapperInner(1967): Cursor finalized without prior close()
12-23 01:25:04.093: D/AndroidRuntime(1967): Shutting down VM
12-23 01:25:04.093: W/dalvikvm(1967): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:25:04.103: E/AndroidRuntime(1967): FATAL EXCEPTION: main
12-23 01:25:04.103: E/AndroidRuntime(1967): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.os.Looper.loop(Looper.java:137)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:25:04.103: E/AndroidRuntime(1967): at dalvik.system.NativeStart.main(Native Method)
12-23 01:25:04.103: E/AndroidRuntime(1967): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:25:04.103: E/AndroidRuntime(1967): ... 11 more
12-23 01:25:04.103: E/AndroidRuntime(1967): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-2, /vendor/lib, /system/lib]]
12-23 01:25:04.103: E/AndroidRuntime(1967): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:25:04.103: E/AndroidRuntime(1967): ... 21 more
12-23 01:25:22.094: I/Process(1967): Sending signal. PID: 1967 SIG: 9
12-23 01:27:40.973: D/dalvikvm(2025): GC_FOR_ALLOC freed 233K, 11% free 2783K/3104K, paused 32ms, total 38ms
12-23 01:27:40.973: W/CursorWrapperInner(2025): Cursor finalized without prior close()
12-23 01:27:40.973: W/CursorWrapperInner(2025): Cursor finalized without prior close()
12-23 01:27:41.003: D/AndroidRuntime(2025): Shutting down VM
12-23 01:27:41.003: W/dalvikvm(2025): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:27:41.023: E/AndroidRuntime(2025): FATAL EXCEPTION: main
12-23 01:27:41.023: E/AndroidRuntime(2025): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.os.Looper.loop(Looper.java:137)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:27:41.023: E/AndroidRuntime(2025): at dalvik.system.NativeStart.main(Native Method)
12-23 01:27:41.023: E/AndroidRuntime(2025): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:27:41.023: E/AndroidRuntime(2025): ... 11 more
12-23 01:27:41.023: E/AndroidRuntime(2025): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-1, /vendor/lib, /system/lib]]
12-23 01:27:41.023: E/AndroidRuntime(2025): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:27:41.023: E/AndroidRuntime(2025): ... 21 more
12-23 01:32:41.724: I/Process(2025): Sending signal. PID: 2025 SIG: 9
HERE IS MY MANIFEST
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.maps"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<uses-library android:name ="com.google.android.maps"/>
<activity
android:name="com.example.maps.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
</i>
HERE IS MY ACTIVITY CLASS
package com.example.maps;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends MapActivity {
MapView map;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
map = (MapView)findViewById(R.id.mvMainActivity);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
#Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
HERE IS MY XML->LAYOUT FILE
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="#dimen/activity_vertical_margin"
android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<com.google.android.map.MapView
android:id = "#+id/mvMainActivity"
android:layout_width = "fill_parent"
android:layout_height = "fill_parent"
android:clickable="true"
android:apiKey = "AIzaSyBq4zldj_kQVdwGt9ru-nWSSOJ0ORUBuFE"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/hello_world" />
</RelativeLayout>
I would recommend you update the ADK's libraries. This question's answer details how to update your libraries.
Furthermore, verify that the libraries you imported for com.google.android.maps have been added to your build path. It seems an off thing to check but working with Android, I have seen many stranger things!
Edit: As stated by one of the comments, the deprecated maps library might be the culprit. If the update does not fix the problem. Try raising the minimum version you are targeting. Legacy support is nice but often induces more problems than it solves. Unless it is of crucial importance to you, I would personally only target the latest release which I believe was API version 14 or 16.
yup as Raghunandan said you are using Google maps API V1 which is deprecated one. Follow this link for Convert it to API V2.
And also you can try this code which I got map on my emulator.
I am new to Android debugging. i read about logCat and DDMS on the functions both have and on filtering.
But, i dont understand how to debug my code with logCat. i classified my logcat by Error. and i got 30 errors relating to all kind of issues, ranging from sound issues to battery issues to main issues...
04-20 06:31:09.982: ERROR/Zygote(33): setreuid() failed. errno: 2
04-20 06:31:16.872: ERROR/Zygote(33): setreuid() failed. errno: 17
04-20 06:31:18.064: ERROR/BatteryService(60): usbOnlinePath not found
04-20 06:31:18.064: ERROR/BatteryService(60): batteryVoltagePath not found
04-20 06:31:18.064: ERROR/BatteryService(60): batteryTemperaturePath not found
04-20 06:31:18.082: ERROR/SurfaceFlinger(60): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-20 06:31:23.482: ERROR/EventHub(60): could not get driver version for /dev/input/mouse0, Not a typewriter
04-20 06:31:23.482: ERROR/EventHub(60): could not get driver version for /dev/input/mice, Not a typewriter
04-20 06:31:23.692: ERROR/System(60): Failure starting core service
04-20 06:31:23.692: ERROR/System(60): java.lang.SecurityException
04-20 06:31:23.692: ERROR/System(60): at android.os.BinderProxy.transact(Native Method)
04-20 06:31:23.692: ERROR/System(60): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-20 06:31:23.692: ERROR/System(60): at android.os.ServiceManager.addService(ServiceManager.java:72)
04-20 06:31:23.692: ERROR/System(60): at com.android.server.ServerThread.run(SystemServer.java:184)
04-20 06:31:24.602: ERROR/SoundPool(60): error loading /system/media/audio/ui/Effect_Tick.ogg
04-20 06:31:24.602: ERROR/SoundPool(60): error loading /system/media/audio/ui/KeypressStandard.ogg
04-20 06:31:24.602: ERROR/SoundPool(60): error loading /system/media/audio/ui/KeypressSpacebar.ogg
04-20 06:31:24.612: ERROR/SoundPool(60): error loading /system/media/audio/ui/KeypressDelete.ogg
04-20 06:31:24.622: ERROR/SoundPool(60): error loading /system/media/audio/ui/KeypressReturn.ogg
04-20 06:31:26.411: ERROR/ThrottleService(60): Could not open GPS configuration file /etc/gps.conf
04-20 06:31:27.751: ERROR/logwrapper(149): executing /system/bin/tc failed: No such file or directory
04-20 06:31:27.792: ERROR/logwrapper(150): executing /system/bin/tc failed: No such file or directory
04-20 06:31:27.823: ERROR/logwrapper(151): executing /system/bin/tc failed: No such file or directory
04-20 06:31:37.841: ERROR/HierarchicalStateMachine(60): TetherMaster - unhandledMessage: msg.what=3
04-20 06:31:58.767: ERROR/AndroidRuntime(277): FATAL EXCEPTION: main
04-20 06:31:58.767: ERROR/AndroidRuntime(277): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.markana.yamba/com.markana.yamba.StatusActivity1}: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-2.apk]
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.os.Looper.loop(Looper.java:123)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at java.lang.reflect.Method.invokeNative(Native Method)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at java.lang.reflect.Method.invoke(Method.java:521)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at dalvik.system.NativeStart.main(Native Method)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): Caused by: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-2.apk]
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
04-20 06:31:58.767: ERROR/AndroidRuntime(277): ... 11 more
04-20 07:30:54.993: ERROR/Zygote(33): setreuid() failed. errno: 2
04-20 07:31:02.125: ERROR/Zygote(33): setreuid() failed. errno: 17
04-20 07:31:03.243: ERROR/BatteryService(59): usbOnlinePath not found
04-20 07:31:03.243: ERROR/BatteryService(59): batteryVoltagePath not found
04-20 07:31:03.243: ERROR/BatteryService(59): batteryTemperaturePath not found
04-20 07:31:03.273: ERROR/SurfaceFlinger(59): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-20 07:31:09.004: ERROR/EventHub(59): could not get driver version for /dev/input/mouse0, Not a typewriter
04-20 07:31:09.004: ERROR/EventHub(59): could not get driver version for /dev/input/mice, Not a typewriter
04-20 07:31:09.265: ERROR/System(59): Failure starting core service
04-20 07:31:09.265: ERROR/System(59): java.lang.SecurityException
04-20 07:31:09.265: ERROR/System(59): at android.os.BinderProxy.transact(Native Method)
04-20 07:31:09.265: ERROR/System(59): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-20 07:31:09.265: ERROR/System(59): at android.os.ServiceManager.addService(ServiceManager.java:72)
04-20 07:31:09.265: ERROR/System(59): at com.android.server.ServerThread.run(SystemServer.java:184)
04-20 07:31:10.843: ERROR/SoundPool(59): error loading /system/media/audio/ui/Effect_Tick.ogg
04-20 07:31:10.865: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressStandard.ogg
04-20 07:31:10.865: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressSpacebar.ogg
04-20 07:31:10.873: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressDelete.ogg
04-20 07:31:10.884: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressReturn.ogg
04-20 07:31:12.824: ERROR/ThrottleService(59): Could not open GPS configuration file /etc/gps.conf
04-20 07:31:14.294: ERROR/logwrapper(149): executing /system/bin/tc failed: No such file or directory
04-20 07:31:14.364: ERROR/logwrapper(150): executing /system/bin/tc failed: No such file or directory
04-20 07:31:14.403: ERROR/logwrapper(152): executing /system/bin/tc failed: No such file or directory
04-20 07:31:26.859: ERROR/HierarchicalStateMachine(59): TetherMaster - unhandledMessage: msg.what=3
04-20 07:31:49.188: ERROR/AndroidRuntime(298): FATAL EXCEPTION: main
04-20 07:31:49.188: ERROR/AndroidRuntime(298): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.markana.yamba/com.markana.yamba.StatusActivity1}: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-1.apk]
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.os.Looper.loop(Looper.java:123)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at java.lang.reflect.Method.invokeNative(Native Method)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at java.lang.reflect.Method.invoke(Method.java:521)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at dalvik.system.NativeStart.main(Native Method)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): Caused by: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-1.apk]
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
04-20 07:31:49.188: ERROR/AndroidRuntime(298): ... 11 more
04-20 07:33:45.057: ERROR/AndroidRuntime(369): FATAL EXCEPTION: main
04-20 07:33:45.057: ERROR/AndroidRuntime(369): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.markana.yamba/com.markana.yamba.StatusActivity1}: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-1.apk]
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.os.Looper.loop(Looper.java:123)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at java.lang.reflect.Method.invokeNative(Native Method)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at java.lang.reflect.Method.invoke(Method.java:521)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at dalvik.system.NativeStart.main(Native Method)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): Caused by: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-1.apk]
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
04-20 07:33:45.057: ERROR/AndroidRuntime(369): ... 11 more
04-20 07:33:58.677: ERROR/AndroidRuntime(412): FATAL EXCEPTION: main
04-20 07:33:58.677: ERROR/AndroidRuntime(412): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.markana.yamba/com.markana.yamba.StatusActivity1}: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-2.apk]
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.os.Looper.loop(Looper.java:123)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at java.lang.reflect.Method.invokeNative(Native Method)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at java.lang.reflect.Method.invoke(Method.java:521)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at dalvik.system.NativeStart.main(Native Method)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): Caused by: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1 in loader dalvik.system.PathClassLoader[/data/app/com.markana.yamba-2.apk]
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
04-20 07:33:58.677: ERROR/AndroidRuntime(412): ... 11 more
My code in the class is quite simple, i did what the example in Android Orielly book did:
package com.markana.yamba;
import winterwell.jtwitter.Twitter;
import winterwell.jtwitter.TwitterException;
import android.app.Activity;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class StatusActivity2 extends Activity implements OnClickListener{
private static final String TAG= "StatusActivity";
EditText editText;
Button updateButton;
TextView textCount;
Twitter twitter;
/** Called when the activity is first created. */
#SuppressWarnings("deprecation")
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.status);
//Finds views
editText =(EditText) findViewById(R.id.editText);
updateButton=(Button) findViewById(R.id.buttonUpdate);
updateButton.setOnClickListener(this);
textCount= (TextView) findViewById(R.id.editText);
textCount.setText(Integer.toString(40));
textCount.setTextColor(Color.GREEN);
// editText.addTextChangedListener(this);
twitter=new Twitter("student","password");
twitter.setAPIRootUrl(("http://yamba.marakana.com/api"));
//added by me
AsyncTask<String, ?, ?> asyn=new PostToTwitter();
asyn.execute("deliver this to twitter");
}
class PostToTwitter extends AsyncTask<String,Integer, String>
{
#Override
protected String doInBackground(String... statuses) {
try{
Twitter.Status status=twitter.updateStatus(statuses[0]);
return status.text;
}
catch(TwitterException e)
{
Log.e(TAG,e.toString());
e.printStackTrace();
return "Failed to post";
}
}
protected void onProgressUpdate(Integer...values)
{
super.onProgressUpdate(values);
}
protected void onPostExecute(String result)
{
Toast.makeText(StatusActivity2.this,result,Toast.LENGTH_LONG).show();
}
}
public void onClick(View arg0) {
// TODO Auto-generated method stub
String status=editText.getText().toString();
new PostToTwitter().execute(status);
Log.d(TAG, "onClick");
}
}
i have no red error marks, nor here nor in the main.xml , string.xml files
How do i trace my bug?
You just read through the output to find
Caused by: java.lang.ClassNotFoundException: com.markana.yamba.StatusActivity1
Which means that this class is missing in the .apk that you've deployed to the device.
Note that your activity is named StatusActivity2 - double check the manifest if that has still StatusActivity1.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
07-26 13:32:38.705: ERROR/Zygote(32): setreuid() failed. errno: 2
07-26 13:32:46.206: ERROR/Zygote(32): setreuid() failed. errno: 17
07-26 13:32:47.526: ERROR/BatteryService(58): usbOnlinePath not found
07-26 13:32:47.526: ERROR/BatteryService(58): batteryVoltagePath not found
07-26 13:32:47.526: ERROR/BatteryService(58): batteryTemperaturePath not found
07-26 13:32:47.556: ERROR/SurfaceFlinger(58): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
07-26 13:32:54.275: ERROR/EventHub(58): could not get driver version for /dev/input/mouse0, Not a typewriter
07-26 13:32:54.285: ERROR/EventHub(58): could not get driver version for /dev/input/mice, Not a typewriter
07-26 13:32:54.496: ERROR/System(58): Failure starting core service
07-26 13:32:54.496: ERROR/System(58): java.lang.SecurityException
07-26 13:32:54.496: ERROR/System(58): at android.os.BinderProxy.transact(Native Method)
07-26 13:32:54.496: ERROR/System(58): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
07-26 13:32:54.496: ERROR/System(58): at android.os.ServiceManager.addService(ServiceManager.java:72)
07-26 13:32:54.496: ERROR/System(58): at com.android.server.ServerThread.run(SystemServer.java:184)
07-26 13:32:55.756: ERROR/SoundPool(58): error loading /system/media/audio/ui/Effect_Tick.ogg
07-26 13:32:55.765: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressStandard.ogg
07-26 13:32:55.775: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressSpacebar.ogg
07-26 13:32:55.795: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressDelete.ogg
07-26 13:32:55.804: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressReturn.ogg
07-26 13:32:59.184: ERROR/ThrottleService(58): Could not open GPS configuration file /etc/gps.conf
07-26 13:33:00.706: ERROR/logwrapper(148): executing /system/bin/tc failed: No such file or directory
07-26 13:33:00.764: ERROR/logwrapper(149): executing /system/bin/tc failed: No such file or directory
07-26 13:33:00.815: ERROR/logwrapper(150): executing /system/bin/tc failed: No such file or directory
07-26 13:33:12.188: ERROR/HierarchicalStateMachine(58): TetherMaster - unhandledMessage: msg.what=3
07-26 13:34:04.617: ERROR/AndroidRuntime(276): FATAL EXCEPTION: main
07-26 13:34:04.617: ERROR/AndroidRuntime(276): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dataApplication/com.dataApplication.Edit}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.os.Looper.loop(Looper.java:123)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at java.lang.reflect.Method.invokeNative(Native Method)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at java.lang.reflect.Method.invoke(Method.java:521)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at dalvik.system.NativeStart.main(Native Method)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ListActivity.onContentChanged(ListActivity.java:245)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.Activity.setContentView(Activity.java:1647)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.dataApplication.Edit.onCreate(Edit.java:32)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): ... 11 more
java.lang.RuntimeException:
Your content must have a ListView whose id attribute is 'android.R.id.list'
Make sure your view file has a ListView element, with android:id="#android:id/list".
This is how the ListActivity knows where to display the data you're adding.
From http://developer.android.com/reference/android/app/ListActivity.html
ListActivity has a default layout that consists of a single, full-screen list in the center of the screen. However, if you desire, you can customize the screen layout by setting your own view layout with setContentView() in onCreate(). To do this, your own view MUST contain a ListView object with the id "#android:id/list" (or list if it's in code)
Check if you have "#android:id/list" in your xml ?