Skip to content

Instantly share code, notes, and snippets.

@renanreismartins
Created October 22, 2013 21:11
Show Gist options
  • Select an option

  • Save renanreismartins/7108249 to your computer and use it in GitHub Desktop.

Select an option

Save renanreismartins/7108249 to your computer and use it in GitHub Desktop.
private void registerInBackground() {
new AsyncTask() {
@Override
protected String doInBackground(Object[] params) {
regid = gcm.register(SENDER_ID);
sendRegistrationIdToBackend(regid);
storeRegistrationId(context, regid);
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment