Android Question service start foreground ?

Devv

Active Member
Licensed User
i'am using this code

B4X:
    Dim test As Notification
    test.Initialize
    test.SetInfo("title","body",Main)
    Service.StartForeground(1,test)
it is not changing the notification title and body and when i click it it take me to the app information not to the main activity
what i'am doing wrong ?

another question is ,can i make the notification hidden or with no title and body ?
 

Devv

Active Member
Licensed User
You shouldn't call test.Notify at all. It happens automatically when you call StartForeground. Are you creating any other notification in your app?
no. the project only have that code
 

Attachments

Devv

Active Member
Licensed User
is their is a way to hide the time that appears on the right of the notification ?
and how could i control if the notification appears at the top or at the bottom of other notifications ?
 
Top