mActivity from Fragment.onAttach() not retained
问题 I have setup a Observable/Subscriber with RxJava. The Observable is created in MainActivity. The Subscriber is a android.support.v4.app.Fragment called MyFragment. The Observable gets data from RESTful service and stores the data in a SQLite db on the device. This works. When its work is done, which takes 4 or 5 seconds such that MyFragment has already processed onCreate() , onCreateView() etc., the subscriber, MyFragment, is notified via its implemented onNext() method (this works) and is