Hi there!
I'd like to start a service when the device completes booting up.
I know I have to use a BrodcastReceiver with ACTION_BOOT_COMPLETED,
but as documentation this only works if the app installed in the
internal storage.
What about the external storage? Is there a workaround to get a quite
similar behavior also in this case?

For app on external storage I tried to wait for receiving
ACTION_MEDIA_MOUNTED, but I wasn't able to get it in my
BrodcastReceiver... :(

This is my intent-filter in the manifest

<receiver android:name="*****.ReceiverBootEvent">
                <intent-filter>
                        <action 
android:name="android.intent.action.BOOT_COMPLETED" />
                </intent-filter>
                <intent-filter>
                        <action 
android:name="android.intent.action.MEDIA_MOUNTED" />
                        <data android:scheme="file" />
                </intent-filter>
</receiver>

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

I haven't found any permission to check MEDIA_MOUNTED.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to