Hi All, I have developed an application which listens for the incoming message. When the message arrives, I am reading that message then invoking the service to delete that message. But when invoking the service I get an error as unhandled exception InstantiationException: Cannot instantiate the service.
Can anyone let me know what may be the problem? Below is the manifest file <application android:icon="@drawable/icon" android:label="@string/ app_name"> <receiver android:name=".SMSIntentReceiver" android:enabled="true"> <intent-filter> <action android:name = "android.provider.Telephony.SMS_RECEIVED" /> </intent-filter> </receiver> <service android:name=".utils.SMSEraser"> <intent-filter> <action android:name="com.utils.utils.SMSEraser"/> </intent-filter> </service> </application> The code that calls the service is as under : //Start the Service. con is Context object Intent intent = new Intent(); intent.setAction("com.satloc.utils.SMSEraser"); con.startService(intent); Hope to get a reply soon. Thanks & Regards Sunil --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---