Answer the question
In order to leave comments, you need to log in
Working with Loader and ResultReceiver - how to fix the error?
There is an activity and a service that receives data via REST.
Activity implements LoaderManager.LoaderCallbacks and MyResultReceiver.Receiver (worse than the usual approach).
There is a problem when turning the device, you need to save the current receiver, I do this:
if (savedInstanceState != null) {
_receiver = savedInstanceState.getParcelable(Extra.RECEIVER);
} else {
_receiver = new MyResultReceiver(new Handler());
}
_receiver.setReceiver(this);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question