On Mon, Jun 4, 2012 at 5:06 AM, Greenhand <[email protected]> wrote:
> I modify my code and use bindService(new
> Intent(getApplicationContext(), MessengerService.class), mConnection,
> Context.BIND_AUTO_CREATE) but my service still be killed and created
> with my Activity life cycle. Can you please illustrate "Don't unbind
> in the old activity instance -- only unbind from the new one." more
> clearly, such as some code fragments?

https://github.com/commonsguy/cw-android/tree/master/Service/WeatherAPI

> I have never used a fragement. Is it different from Activity when it
> comes to handling bound service on rotation?

It can be, which is why I mentioned it.

https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/WeatherFragment

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

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

Reply via email to