broadcastreceiver - android.intent.action.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE what's the use? -
i trying execute onreceive method when android starts can schedule task.
unfortunately onreceive of bradcastreciever called @ boot if install app on root system. thought android.intent.action.action_external_applications_available should fix problem.
but post seems not possible, though in tutorials feasible.
android installlocation , boot_completed
i should infer cannot such thing.
is or there way broadcast @ startup app on sd.
if not possible wonder what's use of android.intent.action.action_external_applications_available
this manifest in case wnat take look. testing on android 2.3.7
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mypackage" android:installlocation="preferexternal" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="9" android:targetsdkversion="17" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.receive_boot_completed" /> <uses-permission android:name="android.permission.vibrate" /> <uses-permission android:name="android.permission.wake_lock" /> ............................. <receiver android:name="mypackage.mynotificationreceiver" android:enabled="true" > <intent-filter android:priority="1" > <action android:name="android.intent.action.boot_completed" /> <action android:name="android.intent.action.action_external_applications_available" /> </intent-filter> </receiver> </application> </manifest>
thanks
first have split intent filter this:
<receiver android:name="mypackage.mynotificationreceiver" android:enabled="true" > <intent-filter android:priority="1" > <action android:name="android.intent.action.boot_completed" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.action_external_applications_available" /> </intent-filter> </receiver>
every filter should have 1 action. second, question: action_external_applications_available occurs time after boot_completed (the device first completes boot, reads card). why both actions?
Comments
Post a Comment