File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes How to make your application to run as the Phone Boots up? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "How to make your application to run as the Phone Boots up?" Watch "How to make your application to run as the Phone Boots up?" New topic
Author

How to make your application to run as the Phone Boots up?

Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Hi all

i want to run my application as soon as the Phone/Emulator Boots up..
actually, i want the service to run at background continuously...

i've tried



but it's not working...
when i Start th emulator, the application doesn't run neither i can see the icon for the same....

can anyone plaese help me out...???
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1365

take a look at this tutorial


[List of FAQs] | [Android FAQ] | [My Blog] | [Samuh Varta]
Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Thanks monu...

i already referred that...

but my problem is that i want to start service at Boot up...

here's the code m working...



and here's the LocalService.java




and AndroidManifest.xml



i don't want anything on foreground... the service should be running at background...

but with this code i get "The process stopped unexpectedly" error as i launch the emulator...


can you please tell me what's wrong with this code...

Thank you so much
Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
hey..

i made it...

what i was doing wrong is i did not set latest event info for my notification... and that's why it was giving me IllegalArgumentException

her's the updated code for showNotification()




and it worked....
 
IntelliJ Java IDE
 
subject: How to make your application to run as the Phone Boots up?
 
Threads others viewed
[2010-08-16 10:31:07 - HelloDatePicker] New package not yet registered with the system
How to create sub applications
how to transfer images to ftp server in android
cannot connect to my MySQL db using HttpClient
Two or more activities
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture