For this kind of operation, using a SharedPreferences object might be a little easier, less dirty, and take less space for you.
On Apr 8, 9: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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

