How do I create a background loop method

by Laxs » Wed, 01 Sep 2010 07:19:55 GMT

Sponsored Links

I got a problem, I want to call a method every X minutes, if my method
got a result it should inform the user by vibrating or showing a
alertbox. if the method doesn't get a result it should wait for X
minutes and restart.
What is important, this should also work when the phone turns to
sleep. Which means I want to wake the phone from sleep to run my

Actualy I can activate my method via a Button, and it is working like
I want it to be except the background loop thing.

I already searching for a solution here in the group or also on google
but I think I don't got the right search terms to find a solution for
my problme.

I already read about the AlarmManager and broadcast receiver but I'm
not sure if this is right for my problem.

I hope you could help me.


Other Threads

1. how to avoid data damage after power down

    I am porting android to my device(arm 926ejs). I use ubifs as my
filesystem , android works fine.
But there is no battery in the device. So I power down the device when it
still working. (Just power down the power supply)
    I found the data in the flash was damaged.  Can I avoid data damage
without using the power key to shutdown the device ?


2. How to Read E-pub File in android from sd card and with formatted output

hi  all

i am doing project on android platform, my application is based on
book reading like adobe acrobat so i am going to read e-pub format so
kindly help me out ....

Thank u


3. Background color of selected text

4. Can I get Image crop source code? in Android

5. LayoutInflater.inflate returning null

6. How to: Register Emulator device to work with chrome to phone extension?

7. (Update) Talking to wpa_supplicant for TTLS / PEAP / TLS (Runtime+wpa_cli / JNI / LocalSocket(Unix domain socket) / wpa_supplicant.conf?)