android - How to Open Activity with Notification -
i implementing 1 sdk when user click on notification activity open.i wondering how can pass different -different activity on intent.here sample code:-
void firenotification(context _context, string appname, string appdescription) { intent resultintent = new intent(_context, resultactivity.class); try { pendingintent contentintent = pendingintent.getactivity(_context,0, resultintent,pendingintent.flag_update_current); mbuilder = new notificationcompat.builder(_context); }
please suggest me how can pass different activity in intent.
i assume wanted load activity instead of resultactivity, change resultactivity.class class name of other activity.
if looking have ability determine activity load after user taps on notification, can create new activity determine activity load after launches, kinda activity "redirect" screen.
Comments
Post a Comment