Hi All
I have a app that uses a few intent filters. They are currently setup in manifest file. Example
What I want to do is register these intent filters when the app loads. I came across this http://hmkcode.com/android-sending-receiving-custom-broadcasts/ , go to point 4.
I do not want to use any existing libs. the app is quite complicated and due to customer requirements and our Bluetooth device
communicating with the app, www.ursosbutton.com, I need the manage the intent filter registration from within the app.
All help would be much appreciated, @Erel, @thedesolatesoul
Kind Regards
John.
I have a app that uses a few intent filters. They are currently setup in manifest file. Example
B4X:
' // Power Intents
AddReceiverText(svc_power, <intent-filter> <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/></intent-filter>)
AddReceiverText(svc_power, <intent-filter> <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/></intent-filter>)
What I want to do is register these intent filters when the app loads. I came across this http://hmkcode.com/android-sending-receiving-custom-broadcasts/ , go to point 4.
B4X:
@Override
protected void onResume() {
super.onResume();
registerReceiver(new MyReceiver(),
new IntentFilter("com.hmkcode.android.USER_ACTION"));
}
I do not want to use any existing libs. the app is quite complicated and due to customer requirements and our Bluetooth device
communicating with the app, www.ursosbutton.com, I need the manage the intent filter registration from within the app.
All help would be much appreciated, @Erel, @thedesolatesoul
Kind Regards
John.