I am new to android. I need to create an auto startup application. That application will control the files( if we open a image file from Gallery (or) mail attachments, on that time our application give a alert dialog to the user). Please guide to how to create an auto startup application to control all the file format in the android emulator.
+3
A:
You should use the permission android.permission.RECEIVE_BOOT_COMPLETED
and register a BroadcastReceiver
for android.intent.action.BOOT_COMPLETED
.
MrSnowflake
2010-05-26 11:34:51
+1
A:
You can take a look at Photostream source as it implements BroadcastReceiver approach suggested by MrSnowflake http://code.google.com/p/apps-for-android/
Fedor
2010-05-26 12:16:03
A:
Please guide to how to create an auto startup application to control all the file format in the android emulator.
Creating an "auto startup application" can be done as MrSnowflake and Fedor describe.
Creating an "application to control all the file format in the android emulator", fortunately, is impossible, as that would represent a massive security hole.
CommonsWare
2010-05-26 13:37:00