Android Question Service stopping exactly in 16 hours

sangee

Member
Licensed User
Longtime User
Dear All....

I have created a service app which runs like the way shown in the Kiosk mode tutorial. The service needs a foreground as it takes pictures every 30 seconds once.

I have noticed multiple times that the service just halts or quits exactly in 16 hours. There is not randomness and it seems to exactly 16 hours . I understand the android service life cycle will close the long running service, but in sticky mode it is supposed to start back the service isnt it? in my case it does not. Even though I have added serviceStartAt in the "Service_Destroy" sub.

I cannot get back the service running unless I restart the device. Is there any way some one can suggest me a way to keep the service+app alive or atleast start back if the app+service is closed or terminated by Android...

This app is for a medial institute which keeps a track of patients in the free ward. Thanks for the help in advance...
 

sangee

Member
Licensed User
Longtime User
Thanks Erel. I will try it now and will post back the update after 16 hours. I am trying to find the reason behind this exact 16 hours.. i will post the information if I find any details....
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…