Thanks for the reply guys.

So the best way is in onCreate() bind and then in onDestroy() unbind.

I had another question that is . The flag BIND_AUTO_CREATE says that it 
will create a service as long as the binding exist,
so if I bind multiple times in the same Activity, lets say in onCreate() and 
in onResume() i fire bindservice() then what should happen?
I think multiple binds is not a problem right. But confusing is that flag.

Are these things same for remote and local service.?
thanks,
satish

On Friday, October 5, 2012 8:23:28 PM UTC+5:30, MagouyaWare wrote:
>
> http://lmgtfy.com/?q=android+bind+service+memory+leak
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Fri, Oct 5, 2012 at 8:42 AM, lokesh gupta <lokesh...@gmail.com<javascript:>
> > wrote:
>
>> Doesnt it get disconnect  by its own
>> On Oct 5, 2012 8:00 PM, "Justin Anderson" <magou...@gmail.com<javascript:>> 
>> wrote:
>>
>>> A memory leak
>>>
>>> Thanks,
>>> Justin Anderson
>>> MagouyaWare Developer
>>> http://sites.google.com/site/magouyaware
>>>
>>>
>>> On Fri, Oct 5, 2012 at 8:24 AM, satish bhoyar 
>>> <getsat...@gmail.com<javascript:>
>>> > wrote:
>>>
>>>> Hi All,
>>>>
>>>> I am just confused in Bindservice and unbind.
>>>>
>>>> I want to know If I am binding to service then is it necessary to 
>>>> unbind it?
>>>> If I won't do it what impact will do onmy application.?
>>>>
>>>> thanks,
>>>> saitsh
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" group.
>>>> To post to this group, send email to 
>>>> android-d...@googlegroups.com<javascript:>
>>>> To unsubscribe from this group, send email to
>>>> android-developers+unsubscr...@googlegroups.com <javascript:>
>>>> 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 post to this group, send email to 
>>> android-d...@googlegroups.com<javascript:>
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com <javascript:>
>>> 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 post to this group, send email to 
>> android-d...@googlegroups.com<javascript:>
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com <javascript:>
>> 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 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

Reply via email to