There are some tutorials about how to include a service in the application for long running tasks.
This ist not what I need, I'm trying to write an app completely without user interaction. No main activity, etc. The service needs to clean up some files regularly, so I need to schedule it somehow. But my main problem is how to hide the userinterface.
How is it done? Can anyone give me a hint? Thank you!
Hello,
You could try with a Transparent Main activity which hides itself on Resume
Or a Widget service too but the user should put it on its Home to start it
So with those flags, I only have to start it once to register the scheduler and afterwards the service starts itself without calling the main activity again? Even after reboots and without showing the main activity ? (otherwise I would have to hit back every time...)