Android/Java ClassCastException error?

Your LockNow class does not extend any Activity but a Receiver so you should declare it that way in your androidManifest. Xml There you have declared both an activity and a receiver for the very same LockNow class You must drop the activity declaration: activity android:name=". LockNow" android:label="@string/app_name.

Your LockNow class does not extend any Activity, but a Receiver, so you should declare it that way in your androidManifest.xml. There you have declared both an activity and a receiver for the very same LockNow class. You must drop the activity declaration: Leave the underlying Controller class as main launcher activity, the LockNow class as receiver.

According to Documentation DeviceAdminReceiver is not an Activity and thus it probably shouldn't be defined as one. According to the Example the actual receiver belongs into tags.

04-27 04:02:47.785: ERROR/AndroidRuntime(1553): java.lang. RuntimeException: Unable to instantiate activity ComponentInfo{com.example. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.app.ActivityThread.

04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.app.ActivityThread. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.app.ActivityThread. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.app.

04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.os.Handler. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.os.Looper. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.app.ActivityThread.

04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at java.lang.reflect.Method. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at java.lang.reflect.Method. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at com.android.internal.os.

04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at com.android.internal.os.ZygoteInit. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at dalvik.system.NativeStart. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): Caused by: java.lang.

04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.app.Instrumentation. 04-27 04:02:47.785: ERROR/AndroidRuntime(1553): at android.app.ActivityThread.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions