[android-developers] Re: Local Services
On 10 Mrz., 02:52, Mark Murphy wrote: Hello Mark, > First, you do not typically use both startService() and bindService(), > but rather one or the other. I'm confused about that. So please let me explain a bit more about what i want to do. Try to implement a service what is getting gps information and record that to a database. An activity get information from that record service to display it. But the user can deceide if he close the activity or not. To say it simply the UI should attach and detach from the service. The question what is raising is that possible with a service implementation and "bindService"? I haven't find answers to this question in your books yet. ;-) The books are great stuff, maybe my bad english comprehension is the problem here. Thanks Daniel -- 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
Re: [android-developers] Re: Local Services
On Sat, Mar 12, 2011 at 3:33 AM, Daniel Rindt wrote: >> First, you do not typically use both startService() and bindService(), >> but rather one or the other. > I'm confused about that. So please let me explain a bit more about > what i want to do. > Try to implement a service what is getting gps information and record > that to a database. > An activity get information from that record service to display it. > But the user can deceide > if he close the activity or not. To say it simply the UI should attach > and detach from the service. Why is the service staying around? What will cause the service to ever shut down? > The question what is raising is that possible with a service > implementation and "bindService"? No. > I haven't find answers to this question in your books yet. ;-) The > books are great stuff, maybe my > bad english comprehension is the problem here. I have two chapters on service theory and patterns in _The Busy Coder's Guide to Android Development_. -- 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 *Advanced* Android Development_ Version 1.9 Available! -- 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