Unable To Instantiate Activity Componentinfo In Android Receive Sms App
Facing the Unable to instantiate activity ComponentInfo problem while launching the SMS Receiver Application. Could any tell me what i am doing wrong????
Solution 1:
Your BroadcastReceiver i.e ReceivesmsActivity and Activity i.e ReceivesmsActivity is with same name may be causing problem so just change to different name register your sms receiver as:
<receiverandroid:name=".ReceivesmsBroadcast"><intent-filter><actionandroid:name="android.provider.Telephony.SMS_RECEIVED" /></intent-filter></receiver>
and in code create a class ReceivesmsBroadcast.java:
publicclassReceivesmsBroadcastextendsBroadcastReceiver {
privatestaticfinalStringTAG="Message recieved";
@OverridepublicvoidonReceive(Context context, Intent intent) {
/// your code go here
}
}
Post a Comment for "Unable To Instantiate Activity Componentinfo In Android Receive Sms App"