It would be much better to call the package manager API to enable/disable
that component.  This way you won't be needlessly launched during boot.

On Wed, Apr 8, 2009 at 7:52 AM, Manfred <[email protected]> wrote:

>
> I write now in a file if the user wants autostart, at booting the file
> is read and i finish activity if autostart was not wanted!
>
> thanks
>
> On 8 Apr., 16:33, Mark Murphy <[email protected]> wrote:
> > Manfred wrote:
> > > But how should i do this, that a user can choose if my app does
> > > autostart or not, if this must be hardcoded in manifest?
> >
> > Presumably, you are asking the user if you should do some work on boot,
> > such as via a PreferenceScreen.
> >
> > In that case, have your receiver check the preference and, if the user
> > did not request work be done at boot, simply exit.
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://twitter.com/commonsguy
> >
> > Android App Developer Training:http://commonsware.com/training.html
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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