Wednesday, February 15, 2012

[android-developers] Re: receive sms application. need help.

added the permission, still no luck.

this is my logcat:

02-16 09:11:11.367: D/AndroidRuntime(8446): Shutting down VM
02-16 09:11:11.367: W/dalvikvm(8446): threadid=1: thread exiting with
uncaught exception (group=0x40a251f8)
02-16 09:11:11.371: E/AndroidRuntime(8446): FATAL EXCEPTION: main
02-16 09:11:11.371: E/AndroidRuntime(8446):
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.android.project.smsapp/
com.android.project.smsapp.Receiver}: java.lang.ClassCastException:
com.android.project.smsapp.Receiver cannot be cast to
android.app.Activity
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1880)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1981)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.app.ActivityThread.access$600(ActivityThread.java:123)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.os.Looper.loop(Looper.java:137)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.app.ActivityThread.main(ActivityThread.java:4424)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
java.lang.reflect.Method.invokeNative(Native Method)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
java.lang.reflect.Method.invoke(Method.java:511)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
dalvik.system.NativeStart.main(Native Method)
02-16 09:11:11.371: E/AndroidRuntime(8446): Caused by:
java.lang.ClassCastException: com.android.project.smsapp.Receiver
cannot be cast to android.app.Activity
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.app.Instrumentation.newActivity(Instrumentation.java:1023)
02-16 09:11:11.371: E/AndroidRuntime(8446): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1871)
02-16 09:11:11.371: E/AndroidRuntime(8446): ... 11 more

* Caused by: java.lang.ClassCastException:
com.android.project.smsapp.Receiver cannot be cast to
android.app.Activity

what to do

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate