Starting service while device boot-up

by Soumya » Sat, 22 May 2010 15:24:55 GMT


Sponsored Links
 Hi,

Is it possible to launch a service during android boot-up scenario. I
am aware that we can use a BroadcastReceiver to handle
ACTION_BOOT_COMPLETED intent and from that launch a scenario but can
it be done in such fashion that during device boot-up the service will
be started automatically by Android.

intent is received and for other certain intents too.

Thank you,
Soumya

-- 



Starting service while device boot-up

by Srikant » Sat, 22 May 2010 23:12:30 GMT


 Hi,

You can launch the service from the init.rc file.

-
Sreekanth




-- 


Sponsored Links


Starting service while device boot-up

by Soumya » Mon, 24 May 2010 13:15:15 GMT


 Hi Srikant,

Can I also mention this in the SystemServer.java file to start my
service automatically during boot-up of Android.

Thank you,
Soumya





-- 



Starting service while device boot-up

by Srikant » Tue, 25 May 2010 21:57:05 GMT


 Hi Soumya,

I just saw the code SystemServer.java, it starts the various services
like Audio, HW, Alarm etc. by adding these server threads to the main
System Server.

You can try adding your service in this file and see, and let us know
the result.

-
Srikant







-- 



Other Threads

1. How to license Google Closed Source Apps for device



I'm not sure about the google contact for that; but it you are interested in
licensing a market for Android, at SlideME we can handle it:
http://slideme.org/partners




-- 
Shane Isbell (Co-founder of SlideME - The Original Market for Android)
http://twitter.com/sisbell
http://twitter.com/slideme

--~--~---------~--~----~------------~-------~--~----~

2. unable to start service --

saw this related post --

3. TabLayout strangeness

4. HTC Question

5. Adding new keyboard locale

6. Bluetooth Support in Eclair

7. Virtual keyboard open event