[Android]BASS

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Lena
BCBJ Master
BCBJ Master
Posts: 715
Joined: Sun Feb 06, 2011 1:28 pm

Re: [Android]BASS

Post by Lena »

I found for API 29 need more parametrs FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK

Code: Select all

public final void startForeground (int id, 
                Notification notification, 
                int foregroundServiceType)
JavaService.startForeground(StartId, ntf, 2);//too many actual parameters

But no version with three parametrs. :(
serv.jpg
serv.jpg (27.19 KiB) Viewed 1065 times
Lena
BCBJ Master
BCBJ Master
Posts: 715
Joined: Sun Feb 06, 2011 1:28 pm

Re: [Android]BASS

Post by Lena »

I understand that in Androidapi.JNI.App the method needs to be rewritten as follows:

Code: Select all

procedure startForeground(id: Integer; notification: JNotification; foregroundServiceType: Integer); cdecl;
What are the next steps for the service code to see this update? Thanks.
Or is it not the right way.
Post Reply