Forums Register Login

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

+Pie Number of slices to send: Send
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...???
+Pie Number of slices to send: Send
take a look at this tutorial
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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....
What does a metric clock look like? I bet it is nothing like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 17794 times.
Similar Threads
Two or more activities
[2010-08-16 10:31:07 - HelloDatePicker] New package not yet registered with the system
how to transfer images to ftp server in android
cannot connect to my MySQL db using HttpClient
How to create sub applications
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:48:47.