Android: Create service that runs when application stops
How do you create a Service that keeps on running when your application is stopped? I am creating the service in a separate process in the manifest file: <service android:name="com.example.myservice" android:process=":remoteservice" /> I am also returning START_STICKY in the Service's onStartCommand: @Override public in onStartCommand(Intent intent, int flags, int startId){ return Service.START_STICKY; } I wouldn't use the android:process attribute - this actually runs your service in a separate process and makes it hard to do things like share preferences. You won't have to worry about your