How-to start service automatically on system startup and on installation

by Ralf » Mon, 13 Apr 2009 13:08:20 GMT


Sponsored Links
 All you need is to create a BroadcastReceiver that is bound to the
BOOT_COMPLETED action.

Tout ce que tu as a faire c'est de creer un BroadcastReceiver qui
recoit l'action BOOT_COMPLETED (avec la permission qui va bien).

Exemple:

<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
package="com.alfray.timeriffic" ...>
  <application ...>
    <receiver android:name=".MyBroadcastReceiver">
      <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
      </intent-filter>
    </receiver>
  </application>

<!-- Important -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</manifest>

R/





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



Other Threads

1. Dev Phone Shipping time - Brightstarcorp taking forever

I ordered the Dev Phone last Saturday, and yes, the shipping costs are
a bit high, but then I'd think at least that I'd get it quickly.... it
also said something about it taking 3 business days and I thought
that's pretty cool...

but what it really meant was that Brighstarcorp is taking 3 days to
place their order at UPS... had they just placed the order on Monday
as you'd expect, I would have it by now... but somehow they waited
until Wednesday to place the order at UPS.... That's ridiculous

Google shouldn't use this company for managing their shipping anymore,
I don't know what the point is of having a fast UPS shipping if they
first wait and drink coffee for 3 days before they even start the
shipping


anyone had the same experience?

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

2. How does OpenCORE PVMF work ?

Dear all,

I am trying to understand the call flow of PV player and PV Author in
OpenCORE PV frame work. I am intrested in understanding the call flow from
application to till Openmax component.

My questions are

1. If i want to replace the existing software codecs with hardware codecs
(with or without OMX complaiance) wht will be the major changes in the
current code.

2.How can track down the code flow from application to Openmax to hardware
happens in PV Player and author is there any doc which explains about this ?
If no doc atleast share the ideas.

How does the commands flow ? Like when i say media player start from java
application wht will be the major steps that will happen in the process..

Like reading from the registry, creating the elements ... blah blah ..

Say i have done with creating the nodes if some command is pushed in the
command queue does it apply on all the nodes (parser, decoder,sink..) ?

What is thread_Logon and thread_Logoff ? For each module i see these
functions ? when will they get created.

I guess the commands are sent in asynchronous fashion so its difficult for
me to understand the code.

3.Which is the best place to start the if i want to replace software codecs
with hardware codecs ? Why OMX complaince is only for decoder ? No OMX
complaince for encoder, parser ... ?

Please share the info..

Regards
Girish

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

3. Please help with android source making

4. Scanning raw memory for malwar

5. SecurityException trying to load a Map in a tab via Intent

6. Bluetooth in Android How to enable bccmd

7. How Can I Remove Top Title Bar from an Application? Or Add things to it...