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 , pass Intent(context, DoSomething.class) to PendingIntent.getActivity(…).

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

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

Check out the source code on my github account

Follow me on Twitter

Follow me on Github

Subscribe to my Youtube Channel