当我重新启动我的Android 4.0时,它会在主屏幕上显示我的应用程序强制关闭警报。当我到达我的应用程序时它完全打开..我在我的应用程序中处理SQL lite概念...它导致此错误..?
我打开设备时的日志猫:
02-11 15:56:12.890: E/AndroidRuntime(768): FATAL EXCEPTION: main
02-11 15:56:12.890: E/AndroidRuntime(768): java.lang.RuntimeException: Unable to instantiate receiver com.sree.weekdayview.calendar.AnCalReceiver: java.lang.ClassNotFoundException: com.sree.weekdayview.calendar.AnCalReceiver in loader dalvik.system.PathClassLoader[/data/app/com.sree.weekdayview.calendar-1.apk]
02-11 15:56:12.890: E/AndroidRuntime(768): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1952)
02-11 15:56:12.890: E/AndroidRuntime(768): at android.app.ActivityThread.access$1400(ActivityThread.java:122)
02-11 15:56:12.890: E/AndroidRuntime(768): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1077)
02-11 15:56:12.890: E/AndroidRuntime(768): at android.os.Handler.dispatchMessage(Handler.java:99)
02-11 15:56:12.890: E/AndroidRuntime(768): at android.os.Looper.loop(Looper.java:132)
02-11 15:56:12.890: E/AndroidRuntime(768): at android.app.ActivityThread.main(ActivityThread.java:4126)
02-11 15:56:12.890: E/AndroidRuntime(768): at java.lang.reflect.Method.invokeNative(Native Method)
02-11 15:56:12.890: E/AndroidRuntime(768): at java.lang.reflect.Method.invoke(Method.java:491)
02-11 15:56:12.890: E/AndroidRuntime(768): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
02-11 15:56:12.890: E/AndroidRuntime(768): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
02-11 15:56:12.890: E/AndroidRuntime(768): at dalvik.system.NativeStart.main(Native Method)
02-11 15:56:12.890: E/AndroidRuntime(768): Caused by: java.lang.ClassNotFoundException: com.sree.weekdayview.calendar.AnCalReceiver in loader dalvik.system.PathClassLoader[/data/app/com.sree.weekdayview.calendar-1.apk]
02-11 15:56:12.890: E/AndroidRuntime(768): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)
02-11 15:56:12.890: E/AndroidRuntime(768): at java.lang.ClassLoader.loadClass(ClassLoader.java:540)
02-11 15:56:12.890: E/AndroidRuntime(768): at java.lang.ClassLoader.loadClass(ClassLoader.java:500)
02-11 15:56:12.890: E/AndroidRuntime(768): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1947)
02-11 15:56:12.890: E/AndroidRuntime(768): ... 10 more
答案 0 :(得分:0)
它提出了几个问题。 如果在单击电源按钮关闭设备时没有任何相同的问题(不关闭电源,只关闭屏幕),则可能不是破坏和创建问题。
重新启动问题主要是因为误用服务。 您必须写下更多详细信息,包括logcat以获得正确的答案; p