Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android dev: How I can find the list of all avaiable intent-filter actions for a receiver?

I'd like to know how you can find a specific "action" to make your own "BroadcastReceivers" from your manifest file.

There is a list of the action that I can add on "intent-filter" for my BroadcastReceiver?

For example:

   <receiver android:name=".Receiver_01_OnSettingChange">
    <intent-filter>
        <action android:name="android.net.wifi.WIFI_STATE_CHANGED"/>
        <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
        <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
        <action android:name="android.intent.action.BOOT_COMPLETED" />
        <action android:name="android.location.PROVIDERS_CHANGED" />
    </intent-filter>
   </receiver>

Where I can find the list of the others action related to the other setting states?

Many thanks

like image 863
Meroelyth Avatar asked Dec 11 '25 12:12

Meroelyth


1 Answers

PackageExplorer lists all intent-filters defined in apps in your device.More information can be had from this link

Android -- How to get a list of all available intent filters ?

Using java method , you can read androidmanifest xml to binary format.Then you can write to a text file.The below link talka about that.

How to parse the AndroidManifest.xml file inside an .apk package

Hope this will help you.

like image 159
UVM Avatar answered Dec 14 '25 00:12

UVM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!