How to autorun program when Android start running?

by bluestar » Wed, 22 Jul 2009 20:09:31 GMT


Sponsored Links
 I have one program and I used adb to connect FR to execute it.
I hope this program would auto-execute when entering Android OS of FR
How to add it to initial schedule? Modify init.rc or some files?

Thanks for your big help.
--~--~---------~--~----~------------~-------~--~----~



How to autorun program when Android start running?

by Micah » Wed, 22 Jul 2009 22:00:30 GMT


  http://developer.android.com/reference/android/content/Intent.html #ACTION_BOOT_COMPLETED



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


Sponsored Links


How to autorun program when Android start running?

by bluestar » Thu, 23 Jul 2009 09:58:23 GMT


 Dear Sir:

        The reference is for android application.
        My program was linux program and I used adb to connect FR to
execute it.
        The commands are like below

          1. after connecting to FR
          2. #cd /data/app
              #./myprogram

        I hope these program would auto-run after entering Android OS.
        Could you have one sample code to provide?

        Thanks for your big help.




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



How to autorun program when Android start running?

by Lazarus 101 » Thu, 23 Jul 2009 16:06:16 GMT


 Try using Runtime.getRuntime.exec("/path/to/yourprogram") in the
BOOT_COMPLETED receiver





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



How to autorun program when Android start running?

by bdjhsl » Fri, 07 Aug 2009 10:38:35 GMT


 But, to use BOOT_COMPLETED, your applicaiton must first run and
register that event, right? So, ins't this a chicken and egg problem??

Thanks







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



How to autorun program when Android start running?

by Mark Murphy » Fri, 07 Aug 2009 18:28:01 GMT


 


Register a <receiver> for BOOT_COMPLETED in your manifest.

Visit:

 http://commonsware.com/AdvAndroid/ 

and download the source code to that book. You will find a project in
there named SysEvents/Boot, which shows the implementation of a
BOOT_COMPLETED receiver.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

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



Other Threads

1. Camera preview to an invisible SurfaceView

Hi Guys,

Is it possible to capture camera snapshots to bitmaps WITHOUT creating
a visible surface view? All samples I saw over internet uses camera
preview directly to a surface view and the surface view underneath
must be visible.

I need a way to capture camera images in the background and only then
show captured images somewhere on the screen. Is it possible?


Thanks,
Alex
--~--~---------~--~----~------------~-------~--~----~

2. HTC G2's home effection is very well,I saw it on www,Is it real or just a flash?

Does anybody know it?
--~--~---------~--~----~------------~-------~--~----~

3. camera crash

4. simple g1 text editor questions

5. Connect to internet from G1 via laptop (USB connection)

6. Google seeds Dream to Googlers for X-mas

7. how to order unlocked unit as developer?