How to start a background service on install

by klavin » Sat, 23 Oct 2010 01:23:34 GMT

Sponsored Links
 I have an app which runs as a background service only. I'l like it to
start up when its installed.
As its just a background service it doesnt show up on the pane of
installed apps. So there is no way for the user to manually start it.
I've already regietered for the BOOT_COMPLETED intent which works but
I dont want the user to have to power off the phone after the app has
been installed, just so as they can start it.

I've looked at the following intents: ACTION_PACKAGE_ADDED/CHANGED/
but it doesnt seem that you can register to listen for them from my

Any idea how I can start my background service without a power off/on?


How to start a background service on install

by Mark Murphy » Sat, 23 Oct 2010 01:31:48 GMT


That is not supported. Please let the user choose when to start up
your application.

That is an invitation to a whole lot of one-star ratings on the
Market. By most reports, users do not like installing which have no
icons in the launcher.

Then add an activity that adds value to your application, and along
the way sets up the alarm for AlarmManager for your periodic
background work. For example, you could allow the user to change the
frequency of the background work (including "never") in the form of a

Mark Murphy (a Commons Guy)  |  | 

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!


Sponsored Links

Other Threads

1. Create ImageView in Java or Xml?

I am currently trying to get an image to "fall" from the "sky" (top of
the mobile device) out to the bottom. In order for me to be able to
manipulate this image, do I have to create it in Java, or should I
make the ImageView in xml? There will eventually be "many" of the same
image falling, so should I create a class of some sort?


2. About scroll bar

Hi All,
      I am developing an android application.I have problem in scroll bar.I
did not get it where to add in main.xml file.Kindly suggest the solution.


3. WebViewClient callbacks called too often

4. Add View to Custom Component

5. about drag and drop on Honeycomb

6. EMMA Coverage EC file is not Created

7. Will Google send out tax forms?