My app has Remote, Foreground aidl service which bound to activity. When i clear recent task (by swipe) service destroy. How can i prevent killing of service.
<service android:enabled="true"
android:exported="false"
android:stopWithTask="false"
android:process=":xplay"
android:name="com.perm.x.Services.PlayingService"/>
Here is how i bind (in onResume)
Intent serviceIntent = new Intent(this,PlayingService.class);
startService(serviceIntent);
bindService(serviceIntent, serviceConnection, Context.BIND_AUTO_CREATE);
Here is how i unbind service (in onPause)
unbindService(serviceConnection);