Thanks Justin!

I was already reading that page and thinking along the lines of maybe I'll just live with the minor issue. ;)

On 3/9/2012 11:39 AM, Justin Anderson wrote:
You can take a look at this:
http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29

But beware... The definition of a "running" app may not be what you think on Android.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Mar 9, 2012 at 9:28 AM, Ted Scott <t...@hootinholler.com <mailto:t...@hootinholler.com>> wrote:

    I have a service that obtains and stores sample data from a web
    service. It is triggered by alarms, gets a sample which may or may
    not be new, stores it in my DB.

    At that point, if a new sample was added, and the activity that
    lists the samples is active, I want to notify it to refresh the
    cursor to include the new sample. If the activity isn't running, I
    don't care because it will be fine when it launches. If I set up a
    receiver and send a broadcast won't the broadcast cause it to
    launch if the activity isn't running? That is behavior that I
    don't want.

    This isn't really a show stopper, but I would appreciate any
    strategy ideas you might have in making this happen in a
    reasonable amount of effort.

-- 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
    <mailto:android-developers@googlegroups.com>
    To unsubscribe from this group, send email to
    android-developers+unsubscr...@googlegroups.com
    <mailto:android-developers%2bunsubscr...@googlegroups.com>
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en


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

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

Reply via email to