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

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).


<manifest xmlns:android="" ;
package="com.alfray.timeriffic" ...>
  <application ...>
    <receiver android:name=".MyBroadcastReceiver">
        <action android:name="android.intent.action.BOOT_COMPLETED" />

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



Other Threads

1. overlay hardware interface and surfaceflinger interaction

For overlay interface, the hardware driver is responsible for scaling,
rotation, etc. SurfaceFlinger just leaves a whole in the 2D composited
frame (black pixels with alpha = 0) to allow overlay surface to show
through the 2D surfaces.

To be clear, this means that the video overlay is behind the 2D
overlay. I believe there are provisions for chroma-key if the overlay
doesn't support an alpha channel.

Hi It appears that I can't reply to the discussion above previously
called 'About the libhardware and overlay hardware interface.'  From
the discussion it appears that a video overlay is displayed behind the
sufaceflinger's composited frame.  When using overlays, the discussion
states that the surfaceflinger leaves a hole with alpha=0 and pixels =
black, but the discussion it also implies that an overlay may have an
alpha channel.

If the surfaceflinger leaves a hole, then what use is the overlay
alpha because there will be no colors to multiply.  Surely the
surfaceflinger does not always leave a hole? and can have color pixels
so that the surfaceflinger's composted frame can be alpha blended with
an overlay frame using hardware?

If this is the case can a composted frame have an alpha value so that
the hardware knows how to multiply the foreground surface with the
background video overlay? or does the overlay always have to have the



2. Can OpenCore record a video and send it by RTP

I want to write a application to send my camera video to others.
But the MediaRecorder can only save it to disk file.
In fact , there is a RTP stack in OpenCore src.
Can OpenCore  record a video and send it by RTP?
And how to do it?


3. Join the Android Developer Group on Linkedin!

4. Does Camera API really works ?

5. XMLHttpRequest

6. List in Gallery

7. Slow searching in large sqlite database ?