Jump to content
Sign in to follow this  
Alex Texera

Start ForegroundService Android 8 and above

Recommended Posts

This is my code:

 

LIntent := TJIntent.Create;
LIntent.setClassName(TAndroidHelper.Activity.getBaseContext, TAndroidHelper.StringToJString('myService'));  
TAndroidHelper.Activity.startForegroundService(LIntent);

When run app and try start service nothing happens.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×