Sorry if I seem confused...

> Call getContentResolver() in your Service.

I'm also doing things like .sendBroadcast() to refresh the photo
gallery, .openFileInput() from the Activity. So doesn't that mean
GetContentResolver() won't work for me?


> > Your example code has the Alarm scheduled from the BootReceiver, how
> > do I make the Activity schedule it?
>
> Put the alarm-scheduling code in a static method somewhere, and call it
> from both places.

So I don't have to worry about the Activity being started from both
places and any contention that may result? Like, what If the phone
boots up and that starts the Alarm, but then the app is closed and
manually restarted. Won't the previous alarm still be in memory?

You rule! Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to