On Wed, Oct 24, 2012 at 3:08 PM, Subodh Nijsure <[email protected]> wrote: > What I want to happen is this background thread that syncs data to aws > should never terminate,and ideally it should get started when device > boot finishes i.e. data collected while there was no network > connectivity, should get uploaded to AWS without user having to do it > explicitly.
Please allow the user to make that choice. The user may prefer "having to do it explicitly" versus you trying to keep code running constantly. > I do start my service such that it returns START_STICKY in its > onStartCommand(), is that sufficient for the service to keep running > even if activity is destroyed? In principle, yes, though I find this to be bad form. A continuously-running service is rarely the right solution from the user's standpoint. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

