Android Question Service.StartForeground

Laurie

Member
Licensed User
Longtime User
Could you provide a really simple example of starting a service.startforeground? I already have an app. What and where do I need to insert the service start?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Laurie

Member
Licensed User
Longtime User
I'm still confused and struggling to progress.
Does my 'activity_create' code now go in 'service_create' ?
Does the majority of my code now go into the equivalent of Tracker - and 'activity_create' in Main remain empty?
 
Upvote 0

Laurie

Member
Licensed User
Longtime User
Hi Erel, My app is a personal one to play our own music. It works fine but of course when the screen shuts down so does the music. I've seen the Tracker example but for a newby it is still difficult to figure out 'what goes where'.
Some things that are easy, even obvious, to an expert are still tricky for new folks.
 
Upvote 0
Top