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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -