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. Source Compiling error

when i use make in the droid root directory it will preform build
tasks for a while before it comes to this :

/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status

thanks for any advice in advance


2. using repo

I'm unclear about the difference between using repo to create a branch
and using git to create a topic branch? or do you end up doing both?


3. Any "newbie" guide to installing the SDK on Mac OSX?

4. install android in k530i

5. Making a call to/getting info from a database on a web server

6. Android Emulator doesn't run applications with Eclipse (Europa)

7. scrollTo not functional after setText