ArminKH Well-Known Member Feb 4, 2016 #1 hi by using broadcast receiver library we can register or unregister or abort dynamic broadcasts but what is the same way for static intents which are added by manifest? i know they are global intents and we should not or can't unregister them but maybe any possible way to stop listening to them maybe by using javaobject,etc... tnx
hi by using broadcast receiver library we can register or unregister or abort dynamic broadcasts but what is the same way for static intents which are added by manifest? i know they are global intents and we should not or can't unregister them but maybe any possible way to stop listening to them maybe by using javaobject,etc... tnx
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2016 #2 You cannot disable static receivers. You can ignore them in your code. Upvote 0
ArminKH Well-Known Member Feb 4, 2016 #3 Erel said: You cannot disable static receivers. You can ignore them in your code. Click to expand... so is not this relevant? http://stackoverflow.com/questions/...unregister-a-receiver-created-in-the-manifest is this ignore them in fact? Upvote 0
Erel said: You cannot disable static receivers. You can ignore them in your code. Click to expand... so is not this relevant? http://stackoverflow.com/questions/...unregister-a-receiver-created-in-the-manifest is this ignore them in fact?
warwound Expert Licensed User Longtime User Feb 5, 2016 #4 Look here: https://www.b4x.com/android/forum/t...eiver-when-app-loads-using-inline-java.52920/ You can disable any broadcast receiver that's defined in your manifest. Upvote 0
Look here: https://www.b4x.com/android/forum/t...eiver-when-app-loads-using-inline-java.52920/ You can disable any broadcast receiver that's defined in your manifest.
ArminKH Well-Known Member Feb 6, 2016 #5 warwound said: Look here: https://www.b4x.com/android/forum/t...eiver-when-app-loads-using-inline-java.52920/ You can disable any broadcast receiver that's defined in your manifest. Click to expand... oh oh that is not a sample,that's really a great tutorial tit's exactly what i want to do and just for help to other members to use simpler i compiled it directly from java and now this has not dependency to java object and inline java attached is the BroadcastState Library which i compile that by your code and change your sample project thank u again @warwound but is this standard way to disable or enable broadcasts which are registered in manifest? @Erel Attachments BroadcastState.jar BroadcastState.jar 924 bytes · Views: 265 BroadcastState.xml BroadcastState.xml 1.6 KB · Views: 311 DynamicBroadcastReceiver.zip DynamicBroadcastReceiver.zip 366.3 KB · Views: 288 Upvote 0
warwound said: Look here: https://www.b4x.com/android/forum/t...eiver-when-app-loads-using-inline-java.52920/ You can disable any broadcast receiver that's defined in your manifest. Click to expand... oh oh that is not a sample,that's really a great tutorial tit's exactly what i want to do and just for help to other members to use simpler i compiled it directly from java and now this has not dependency to java object and inline java attached is the BroadcastState Library which i compile that by your code and change your sample project thank u again @warwound but is this standard way to disable or enable broadcasts which are registered in manifest? @Erel