How do I create a background loop method

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


Sponsored Links
 Hi,

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
method.

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. Making Video files Android ready for playback over HTTP

I am working on an Android application which is supposed to play
videos over HTTP on Android devices. Before we setup a server to host
the video files just wanted a few things clarified:

As per the developer documentation, Android supports .mp4 and .3gp
container formats for video. The audio-video codec used for our media
files is H.263(video) and AAC LC (Audio).

I did a little experiment and passed URL of one of the video files to
the MediaPlayer class and got the following error:
Command PLAYER_INIT completed with an error or info
PVMFErrContentInvalidForProgressivePlayback

video's index (e.g moov atom) should be at the start of the file.

How do we make our videos Android-ready?
What are the different considerations that we need to make?

Please help.

Thanks.

-- 

2. OOT: Pak Gunaris Mengudara di Radio JJFM

Nyaris saja kelupaan. 

Pak Gunaris - Otomasi.com yang dikenal sebagai suhu GPS akan mengudara
di radio JJFM Surabaya. Tema yang dibahas: "Pelacakan via Seluler"

Kapan? Sore ini pukul 16.00-17.00. 

Rekan yang berada di Surabaya silakan langsung mengubah channel radionya
ke 105,10 FM. 

Sedangkan rekan yang berada di luar Surabaya dapat memantau via radio
streaming. Masuklah ke www.jjfmradio.com, kemudian klik online radio.
Maaf, nggak ada direct URL-nya.  

Selama acara berlangsung, pendengar bisa berinteraksi via:
* telepon 031-5483320
* SMS 0815 555 0123

Terima kasih. 



Salam,


Herry SW

-- 
"Indonesian Android Community [id-android]" 

3. 2.2 SDK refresh

4. Bisa diupgrade lagi ngak spicanya

5. question about the Android Git source tree Category

6. Whether to use a Service or Thread for Http Connection?

7. Game Need for speed shift