BroadcastReceiver Tutorial Part 8 - GOASYNC + PENDINGRESULT - Android Studio Tutorial . 13 views 0 0 ...
By default, a BroadcastReceiver is only active as long as it’s onReceive method runs. Once this method returns, the containing app process only becomes as important as the other components that it contains.
Use goAsync() if you want to handoff the processing inside of your BroadcastReceiver's onReceive() method to another thread. The onReceive() method can then be finished there. The PendingResult is passed to the new thread and you have to call PendingR
Post a Comment:
Showing 0 Comments: