Android Question App without user interface?

onyxogen

New Member
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!
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
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
 
Upvote 0

onyxogen

New Member
Thanks, but it sounds a bit like a workaround. :/ Is it impossible to do something like that 'the right way' in b4a?
Does b4a only support ui apps?


How can I achieve that the main activity is transparent?
 
Upvote 0

onyxogen

New Member
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...)
 
Upvote 0
Top