Android Question service start foreground ?

Devv

Active Member
Licensed User
Longtime 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 ?
 

DonManfred

Expert
Licensed User
Longtime User
You forgot to call notify i believe... Give it a try
notify003.png
 
Upvote 0

Devv

Active Member
Licensed User
Longtime 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

  • test.zip
    11.4 KB · Views: 122
Upvote 0

Devv

Active Member
Licensed User
Longtime 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 ?
 
Upvote 0
Top