Skip to content

Instantly share code, notes, and snippets.

@cirocosta
Created November 5, 2013 17:23
Show Gist options
  • Save cirocosta/7322696 to your computer and use it in GitHub Desktop.
Save cirocosta/7322696 to your computer and use it in GitHub Desktop.
Processa Mensagem
private void processaMensagem(Bundle extras){
if(extras.containsKey("message"){
String message = extras.getString("message");
sendNotification(message);
}
if(extras.containsKey("update"){
extras.getString("update");
SyncManager sync = new SyncManager(getApplicationContext());
sync.getUpdate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment