Thursday, September 23, 2010

Re: [android-developers] services and manifest.

It's to disable the component so it can't run.  If you don't want that, don't set it to false. :)  There is an API to control this state at runtime.

On Thu, Sep 23, 2010 at 5:04 PM, sdphil <phil.pellouchoud@gmail.com> wrote:
<service android:name="TestService" android:enabled="false"/>

according to the documentation on android:enabled here --

   Whether or not the service can be instantiated by the system —
"true" if it can be, and
   "false" if not. The default value is "true".

Set to false, means the system cannot start the service.  But if I
have this set to false, it looks like not even my app can start the
service.  If not even I can start the service, I'm not sure what the
purpose is here...  Ideas?

tia.

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



--
Dianne Hackborn
Android framework engineer
hackbod@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

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

No comments:

Post a Comment