Android 安卓服务&x2B;RESTful web服务的ResultReceiver模式

Android 安卓服务&x2B;RESTful web服务的ResultReceiver模式,android,rest,service,Android,Rest,Service,关于Android上的REST操作,我想大多数人都会看到(不是2011!)如何使用IntentService+ResultReceiver模式 现在我想知道在Google I/O应用程序的OnRetainonConfiguration实例中清除对活动的引用背后的原理 @Override public Object onRetainNonConfigurationInstance() { // Clear any strong references to this

关于Android上的REST操作,我想大多数人都会看到(不是2011!)如何使用IntentService+ResultReceiver模式

现在我想知道在Google I/O应用程序的OnRetainonConfiguration实例中清除对活动的引用背后的原理

    @Override
    public Object onRetainNonConfigurationInstance() {
        // Clear any strong references to this Activity, we'll reattach to
        // handle events on the other side.
        mState.mReceiver.clearReceiver();
        return mState;
    }
我的理解是,只有在配置更改后才会调用它。如果是这样,清除onPause()中对接收器的引用会更好吗

关于这一点,我还有一个问题:假设我忘记清除onPause()/onretainonconfigurationinstance()中对活动的引用,那么只要我的活动没有被销毁(即它处于活动、暂停或停止状态),onReceiveResult()仍将被调用并更新我的活动,我能说吗