A blog for technology, SEO tips, website development and open source programming.

Android start activity once notification clicked

3 9,506

The post will demonstrate how we can pass intent to start activity to notification, to start activity once user click on the notification.

Follow me on Instagram






Firstly, we need to Create AlarmReceiver.java , pass Intent(context, DoSomething.class) to PendingIntent.getActivity(…).

Secondly, we need to Create DoSomething.java, it will be started once user click the notification.

Finally, we need Create AndroidManifest.xml to add of “DoSomething”.

[alert type=white ]Check out the source code on my github account[/alert]

Follow me on Twitter


Follow me on Github

Subscribe to my Youtube Channel

3 Comments
  1. […] Android start activity once notification clicked […]

  2. […] Android start activity once notification clicked […]

  3. […] Android start activity once notification clicked […]

Leave a Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More