The Intent class is used to call another activity (NotificationView.java) on taping the notification. The NotificationManager.notify() method is used to display the notification. In this class, clicking the button calls the addNotification() method where we implement the NotificationCompat.Builder object to set the notification properties. In the MainActivity.java class adds the following code. TextView is used to display the notification message. For the Messages, it used to be green and white and there was also a red color indicating the number of messages. This activity will be launched on clicking the notification. If you receive a message on plenty of fish, generating a notification icon on your mobile phone, is also then shows you logged in. In the old version of the Plenty of Fish app, there are a few things such as Messages, Ultra Match, Search, Locals, My Matches, Viewed Me, Meet Me, Profile, and Favorites. Create an activity named as activity_notification_view.xml and add the following code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |