Lê Thị Thuỳ Trang
New member
How pass data from BroadcastReceiver to activity in Android?
Answer
Pass data from broadcast receiver to activity without reopening…
Answer
Pass data from broadcast receiver to activity without reopening…
- Code.
- Open your project where you want to implement this.
- Open your BroadcastReceiver class from where you pass data to activity inside your onReceive() you need to start intent and pass data inside intent and start sendBroadcast() as shown bellow.
- Now register the receiver in activity where we get data.
- Note.