我做了一个短信接收的程序,可是只要已收到短信,程序就会被迫关闭,大家帮我找一下原因吧!
LOG为:
09-26 13:34:08.019: ERROR/AndroidRuntime(1461): FATAL EXCEPTION: main
09-26 13:34:08.019: ERROR/AndroidRuntime(1461): java.lang.RuntimeException: Unable to start receiver irdc.message.SMSreceiver: android.content.ActivityNotFoundException: Unable to find explicit activity class {irdc.message/irdc.message.SMSreceiver}; have you declared this activity in your AndroidManifest.xml?
LOG为:
09-26 13:34:08.019: ERROR/AndroidRuntime(1461): FATAL EXCEPTION: main
09-26 13:34:08.019: ERROR/AndroidRuntime(1461): java.lang.RuntimeException: Unable to start receiver irdc.message.SMSreceiver: android.content.ActivityNotFoundException: Unable to find explicit activity class {irdc.message/irdc.message.SMSreceiver}; have you declared this activity in your AndroidManifest.xml?
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
action是android系统内置的action,你也应该用的这个action吧!