Skip to content

Instantly share code, notes, and snippets.

@jdamcd
Created September 22, 2015 18:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jdamcd/c6bfa67b0f8a6a23681c to your computer and use it in GitHub Desktop.
public class BackgroundService extends IntentService {
private static final String NAME = "BackgroundWork";
public BackgroundService() {
super(NAME);
}
@Override
protected void onHandleIntent(Intent intent) {
Log.i(NAME, Example.blocking());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment