Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Ted Scott
On 3/9/2012 1:52 PM, Mark Murphy wrote: On Fri, Mar 9, 2012 at 1:35 PM, Ted Scott wrote: ^_- Support Package?! Oh, I see I have some reading to do. Thanks! Looking at the SDK page, I don't know how I missed looking at that. Any pointers you might have to a nutshell description or pitfalls

Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Mark Murphy
On Fri, Mar 9, 2012 at 1:35 PM, Ted Scott wrote: > ^_-  Support Package?! Oh, I see I have some reading to do. Thanks! > Looking at the SDK page, I don't know how I missed looking at that. Any > pointers you might have to a nutshell description or pitfalls would be > appreciated. http://en.wi

Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Ted Scott
On 3/9/2012 12:36 PM, Mark Murphy wrote: On Fri, Mar 9, 2012 at 12:29 PM, Ted Scott wrote: feeling the frustrations of the moving platform now. The Android Support package supports the Loader framework going back to Android 1.6, if you are willing and able to inherit from FragmentActivity. ^_

Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Ted Scott
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%

Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Mark Murphy
On Fri, Mar 9, 2012 at 12:29 PM, Ted Scott wrote: > Ah, I'm coding to API level 8 so I'm using a managedQuery. It seemed like a > lot of devices would be cut out if I went to a higher API level. I guess I'm > feeling the frustrations of the moving platform now. The Android Support package support

Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Ted Scott
Thanks Mark. On 3/9/2012 11:36 AM, Mark Murphy wrote: On Fri, Mar 9, 2012 at 11:28 AM, Ted Scott wrote: 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 runni

Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Justin Anderson
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/magouyawar

Re: [android-developers] Detecting if activity is running from service

2012-03-09 Thread Mark Murphy
On Fri, Mar 9, 2012 at 11:28 AM, Ted Scott 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 >