debug
release
adb install -r PATH_TO_TOUR_APK
versionCode
public class EmptyService extends Service {
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d("EmptyService", "Service Started");
return START_NOT_STICKY;
}
@Override
public void onDestroy() {
super.onDestroy();
Log.d("EmptyService", "Service Destroyed");
}
@Override
public void onTaskRemoved(Intent rootIntent) {
Log.e("EmptyService", "END");
stopSelf();
}
}
<service android:name="com.example.EmptyService" android:stopWithTask="false" />