Setting interval to set for service

by sunitha » Wed, 11 Nov 2009 23:01:28 GMT

Sponsored Links

I have to develop a service which runs in background. I do need to
keep some logic in the service to run for every 10 minutes. Is there
any way to set time interval.


Setting interval to set for service

by RichardC » Wed, 11 Nov 2009 23:05:15 GMT

 AlarmManager see: 

Also if you are waking the phone every 10mins to run your service you
will really drain the battery as the phone takes a while to go back to
sleep again.



Sponsored Links

Other Threads

1. How to Use Google Accounts in Android Application

Hello all,

I want to use users' Google accounts in my application, example Google
's services which need login.
Any one knows how to build it into android applications? thanks!

2. Android Instrumentation Non UI Results

Hey, I have tried running the instrumentation through adb shell, it
works fine. I wonder whether android supports running instrumentation
through eclipse to get display results in UI. Because as of now I was
using adb shell to execute the instrumentation. Is there any way using
which I can run the instrumentation to get results displayed in a UI?

- Sundar


3. Android Limitation on Instrumentation

4. Is there some kind of Widget Engine/Platform/Runtime will appear in future android platform?

5. Manually generating .apk

6. freezed_emulator

7. Error to open image fiile using OI File Manager