Anybody have an example of calling the package manager API to enable
or disable "autostart" receivers/activities (using shared prefences)?

Thanks in advance,
- Paul

On Apr 8, 12:55 pm, Dianne Hackborn <hack...@android.com> wrote:
> 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 <manfred.fettin...@gmail.com> 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 <mmur...@commonsware.com> 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
> hack...@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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to