+ 2
Which Android Thread Is Used In Below (Mentioned in Description) Situation?
Hello Everyone, I want to show the user the total time they are using there mobile in a day. So, for this, when the mobile is in foreground then the counting will begun and also display the total time in notification. When the mobile goes in sleep mode the count will stop and for saving data before going to sleep mode, I am using shared preferences. But, which kind of service should I use for this job, handler, service, work manager, jobscheduler, jobintentservice or mixing of any two or anything else ? (I am targeting android O)
2 ответов
+ 5
Hello.
I am not sure at all.
I asked your question to a friend who is working with Android this days.
He gave me this
https://developer.android.com/reference/android/app/IntentService
+ 1
Thanks, for asking this question to your friend but Intent Service doesn't work in background in Oreo devices...