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. Hosting APKs files on site works for emulator, but not device?

I'm currently hosting an app on my own server so my beta testers can
test it. I've set up the apk MIME type to be application/
vnd.android.package-archive, and when I try to download the app from
the emulator, it downloads the 53KB apk file and installs it.

When I try to do the same thing from a real ADP1 device, it only loads
43KB. When I try to install it, the system says that I'm trying to
install an app that already exists (called "Android System") and that
doesn't require any permissions, but nothing happens when I proceed.
logcat tells me "D/asset   (16379): failed to open Zip archive '/
sdcard/download/[name of the app].apk'

Bonus points! When I try to download the app from the emulator, I can
see that in the accesslog of my server. Not so when I download it from
the device, even after deleting /sdcard/download/* and clearing the
cache through the settings. Almost as if the device was loading an old
copy from a proxy server. I'm not sure which APN I'm using, but none
of the T-Mobile APNs have a proxy AFAICS.

Is there a way to circumvent the proxy, assuming that this is the
case? And/or tell the proxy not to cache this apk file?

-Mike


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

2. OnDraw in Listview

Hello

I made my own widget by extended listview.
How to draw over list?

When i draw in Overridden OnDraw method it's showing behind the list
items, but i need to draw over.
--~--~---------~--~----~------------~-------~--~----~

3. Bitmap Memory

4. jarsigner jar sign apk update

5. R.id.icon missing?

6. I need to use jbossall-client.jar

7. is there good money to be made?