toby Well-Known Member Licensed User Longtime User Jan 7, 2018 #1 My test app is a service which starts the main activity. I want the only thing visible is the notification icon which, once touched, will bring the main activity to the foreground. Can someone give some advices on how to achieve that?
My test app is a service which starts the main activity. I want the only thing visible is the notification icon which, once touched, will bring the main activity to the foreground. Can someone give some advices on how to achieve that?
Peter Simpson Expert Licensed User Longtime User Jan 7, 2018 #2 Look for notifications builder library. NotificationBuilder Methods: AddAction (icon As String, title As String, tag AsString, Activity As Object) Adds an Action to the notification. The action in your case would be to start the main activity. Last edited: Jan 7, 2018 Upvote 0
Look for notifications builder library. NotificationBuilder Methods: AddAction (icon As String, title As String, tag AsString, Activity As Object) Adds an Action to the notification. The action in your case would be to start the main activity.
Erel B4X founder Staff member Licensed User Longtime User Jan 7, 2018 #3 When the user clicks on the app icons, the main activity starts. You can immediately finish it if you like. Upvote 0
When the user clicks on the app icons, the main activity starts. You can immediately finish it if you like.