Skip to content

Commit

Permalink
Explicitly setting IntentService to START_NOT_STICKY (but that should…
Browse files Browse the repository at this point in the history
… be the default) to aid reproduction of any app kill behaviour
  • Loading branch information
darryncampbell committed Apr 21, 2017
1 parent fa8da76 commit 27e3d82
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class MyIntentService extends IntentService {

public MyIntentService() {
super("MyIntentService");
// Set to true to have IntentService START_REDELIVER_INTENT (https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/app/IntentService.java#99)
// default is false
setIntentRedelivery(false);
}

@Override
Expand Down

0 comments on commit 27e3d82

Please sign in to comment.