[android-developers] Re: Scheduling a repeating task and being notified

2009-03-20 Thread Kenny
Where to find RemoteCallbackList sample code? On Mar 19, 10:03 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I did something similar, however, i did not use a BroadcastReceiver to get callbacks back from the service. Instead i used the RemoteCallbackList class:  

[android-developers] Re: Scheduling a repeating task and being notified

2009-03-19 Thread Streets Of Boston
I did something similar, however, i did not use a BroadcastReceiver to get callbacks back from the service. Instead i used the RemoteCallbackList class: http://developer.android.com/reference/android/os/RemoteCallbackList.html No fiddling with intents and such. Just define a callback

[android-developers] Re: Scheduling a repeating task and being notified

2009-03-18 Thread Kenny
Sorry, my fault. I was reading PendingIntent.send(). It was what I meant. http://groups.google.com/group/android-developers/browse_thread/thread/e5431d6a90b91646/a0892f62e2b42495#a0892f62e2b42495 is my concern. Dalvik process is a zygoted JVM instance within a Linux process. It's my

[android-developers] Re: Scheduling a repeating task and being notified

2009-03-16 Thread BoD
Replying myself, for future reference. For the scheduling part I used AlarmManager and a Service as mentioned before. For the notification back part I ended up using sendBroadcast from the service and a BroadcastReceiver on my Activity (registering/ unregistering it in onResume/onPause). It works

[android-developers] Re: Scheduling a repeating task and being notified

2009-03-16 Thread Kenny
Besides sendBroadcast( ), how about sentIntent( )? Are your service and receiver in the same Dalvik JVM process? Kenny On Mar 16, 6:16 pm, BoD bodl...@gmail.com wrote: Replying myself, for future reference. For the scheduling part I used AlarmManager and a Service as mentioned before. For

[android-developers] Re: Scheduling a repeating task and being notified

2009-03-16 Thread BoD
They are in the same application. The Service is started by the AlarmManager, so I'm not sure about what you mean by the same 'Dalvik process'. I'm also not sure of what you mean by sent(d?)Intent? Thanks a lot! BoD On Mar 16, 2:49 pm, Kenny yxw...@gmail.com wrote: Besides sendBroadcast( ),