Thursday, June 30, 2011

Re: [android-developers] Starting an app at BOOT

On Thu, Jun 30, 2011 at 4:28 AM, Paolo <brandipa@gmail.com> wrote:
> I'd like to start a service when the device completes booting up.

Why?

> I know I have to use a BrodcastReceiver with ACTION_BOOT_COMPLETED,
> but as documentation this only works if the app installed in the
> internal storage.
> What about the external storage? Is there a workaround to get a quite
> similar behavior also in this case?

No. Don't install it to external storage, or don't start the service
at boot time.

Since very few apps really need to have a service start at boot time,
I suggest that you start there.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.9 Available!

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