Skip to content Skip to sidebar Skip to footer

"unable To Start Service Intent" Error When Starting Service From An Activity In Android

I see the following error in DDMS when trying to use a CheckBox on my MyActivity' activity to start a service called 'MyService': W/ActivityManager( 73): Unable to start service

Solution 1:

I kept digging around and, as I figured, I was making an obvious rookie error. In AndroidManifest.xml, I had the < service> declaration after < application> instead of nested inside it.

Solution 2:

You need not to write intent filter because you are starting service explicitly. If you are new to android use following link it will be very helpful for you. It has service example too. http://saigeethamn.blogspot.com/2009/08/android-developers-tutorial-for.html

Solution 3:

Solution 4:

clean up the line in your manifest.xml

<intent-filter><actionandroid:name="com.example.android.myprogram.MyService"></action></intent-filter>

Post a Comment for ""unable To Start Service Intent" Error When Starting Service From An Activity In Android"