android - While my app is running, how can I update the current activity with the contents a GCM notification, without clicking on the notification? -
is possible? when receive notification onmessage(context context, intent intent)
fires, i'm not able reference of activities
in context. there way me this? or need user click notification update activity , view?
in onmessage handler, execute:
var = new intent(this, typeof(myactivity)); i.setflags(activityflags.newtask); context.startactivity(i);
Comments
Post a Comment