Re: [android-developers] Best practice for co-ordinating a SyncAdapter and GCM updates of data within an app
On Thu, Jul 18, 2013 at 3:31 AM, Shiraz Azizali <shiraz.azizali@gmail.com> wrote:
Thanks, I'm still unsure how to acheive what I'm after from here, but it's a step forward..
A simple static boolean flag should suffice. Each component will run in the main thread initially to start up. First check the flag, if set, abort the sync, if not, set it, then proceed with background sync, then reset it when done.
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
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+unsubscribe@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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home