Android Question timer into a service module

kalarius

Active Member
Licensed User
Longtime User
hi,

I make a service that is auto startup
no activity layout just the service
and I need to have a timer on it

how can I add a timer on the service module?

Kalarakis
Greece
 

mangojack

Expert
Licensed User
Longtime User
Exactly the same way as if it was an Activity module.

Just declare the timer in service Process Globals , Initialize it at some point and create a Ticks sub to catty out specific task.
 
Upvote 0

An Schi

Well-Known Member
Licensed User
Be aware that even if you have no activity or a layout you will have to start your app once to make the service work.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…