• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Running Services immediately after the apk is installed on the device.  RSS feed

Posts: 1369
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The application that I am working on is basically a background service(No UI as of now). This service is to run almost always for the time device is ON.

So, I have a BroadcastReceiver in my application that filters "BOOT_COMPLETED" Intent action and attempts to start the service. Now, this will ensure that the service is started on Device boot always. I also want the service to be started immediately after the apk file for the application is installed on the device.

I am not sure how or whether this could be achieved.

Please help.

Thanks in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!