I am trying to run a service in the background. What my app does is when user checks checkbox then service starts and when it is unchecked service is stopped. Which is worki
Let your Service run in a separate process. There is a good tutorial in this blog.
Service
You can specify the android:process attribute in tag to make your app run within its own process.
android:process