Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×