Android Notification Example
This post describes how to build a notification and open an Activity when the notification is clicked. Create your layout in activity_main.xml. In MainActivity.java use following codes. Create message.xml, containing a TextView. In MessageActivity.java use following codes. Now run the app.