2/19/2012

[android] ActivityGroup child onResume()

* AAActivityGroup extends ActivityGroup

mCCCChildActivity = getLocalActivityManager().getActivity("CCCChildActivity");

protected void onResume() {
    if (mCCCChildActivity.hasWindowFocus() == true) {
        mCCCChildActivity.onWindowFocusChanged(true);
    }
}


* CCCChildActivity
public void onWindowFocusChanged(boolean hasFocus) {
    if (hasFocus == true) {
         :
    }
}

댓글 없음: