Тэги:
#Anil_Deshpande #Codetutor #Anil_V_Deshpande #LocalBrodcastManager #Local_Broadcast_Manager #intent_broadcast #custom_intent_broadcast #Listening_to_custom_intent_broadcast #Triggeting_Brodcast_Receiver #BroadcastReceiver #Broadcast_ReceiverКомментарии:
For second application we need to setPackage("ReceiverApp PAckage NAme ")
Ответитьkamal ho sir kha chup k baithe the hum angrezo ki video dekhte reh gye aur app yha bdiya content de rhe ho woh dekha nhi tha aaj tak.
ОтветитьWill broadcast receiver work when we kill the app?
Ответитьcan we send broadcast receiver from one activity to another activity in same app?
Ответитьdoes second app have to be in foreground to get triggered by latter one
ОтветитьThank you sir <3 ,I have a problem confused me so much : the broadcast receiver listen to BOOT_COMPLETE action in some devices (huawei p9 lite , some emulators) but in some devices (samsung A2Core , some emulators) broadcast receiver can't receive to BOOT_COMPLETE , is there any tricky solution ? and thank you !
ОтветитьGreat video Sir! I am using Broadcastreceiver in a college project of mine and got stuck. Hopefully you can help.
The project is a bluetooth project. The bluetooth part is working perfectly. I am receiving the data in this format "3.6666&8.9999". These are latitude and longitude values I need to plot in a map. But I am unable to use the values outside the Broadcastreceiver. Please do help. I have attached the code below.
BroadcastReceiver mReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String text = intent.getStringExtra("theMessage");
// The "3.6666&8.9999" is inside this
Log.i("text sample", text);
String coordinates[] = text.split("&");
btlatitude = Double.parseDouble(coordinates[1]);
//3.6666
btlongitude = Double.parseDouble(coordinates[0]);
8.9999
incomingMessages.setText(text);
Log.i("text sample lat", String.valueOf(btlatitude));
Log.i("text sample long", String.valueOf(btlongitude));
}
};
first all your videos are awesome , i have a question that how and where did you mentioned about the second app in your first app that it will receive the msg , like when i send a msg to someone i have to mention or write a phone number (like an address to the other app user )... where did you do that in your app that it could know that which app will receiver the msg ... thank you ..
and again your videos are awesome ....
Sir, this is working but when I remove Receiver app from "recent apps" and fire broadcast from another app then that receiver app doesn't recieve that broadcast, however i have set exported attribute to true and declared receiver both in manifest and java file...please help.
Ответитьi like you when you say
FOR THAT
I am using android PIE. I saw the quick fix update. Now I can trigger BR locally but having problem with remote access. BR is not responding while I want to access from remote app.
ОтветитьHi sir,
can you please tell some real time example of using localBrodcastManager
or some existing app example which are using this.
Thanks,
Rahul
Thank u gurudevvvvvvv
Ответитьhelped in my preparation, Excellent explanations.thanks
Ответитьhelped in my project
ОтветитьHello Sir,
Is there a way to listen to any inter-app communication between two or more Android applications?
hi sir,
I have used your code but not getting any message when i press button(broadcast is sent but not received) .. what can be the possible mistake im doing?????
I really very like your videos
ОтветитьPlease sir I have error in custom broadcast receiver in oreo.
Not work.
So please give me suggestions
But please put video custom broadcast receiver in oreo because it will not work in oreo.
All your android tutorial give me deep knowledge