FileDocCategorySizeDatePackage
ActivityGroup.javaAPI DocAndroid 1.5 API3842Wed May 06 22:41:54 BST 2009android.app

ActivityGroup

public class ActivityGroup extends Activity
A screen that contains and runs multiple embedded activities.

Fields Summary
private static final String
TAG
private static final String
STATES_KEY
static final String
PARENT_NON_CONFIG_INSTANCE_KEY
protected LocalActivityManager
mLocalActivityManager
This field should be made private, so it is hidden from the SDK. {@hide}
Constructors Summary
public ActivityGroup()

    
      
        this(true);
    
public ActivityGroup(boolean singleActivityMode)

        mLocalActivityManager = new LocalActivityManager(this, singleActivityMode);
    
Methods Summary
voiddispatchActivityResult(java.lang.String who, int requestCode, int resultCode, android.content.Intent data)

        if (who != null) {
            Activity act = mLocalActivityManager.getActivity(who);
            /*
            if (Config.LOGV) Log.v(
                TAG, "Dispatching result: who=" + who + ", reqCode=" + requestCode
                + ", resCode=" + resultCode + ", data=" + data
                + ", rec=" + rec);
            */
            if (act != null) {
                act.onActivityResult(requestCode, resultCode, data);
                return;
            }
        }
        super.dispatchActivityResult(who, requestCode, resultCode, data);
    
public ActivitygetCurrentActivity()

        return mLocalActivityManager.getCurrentActivity();
    
public final LocalActivityManagergetLocalActivityManager()

        return mLocalActivityManager;
    
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        Bundle states = savedInstanceState != null
                ? (Bundle) savedInstanceState.getBundle(STATES_KEY) : null;
        mLocalActivityManager.dispatchCreate(states);
    
protected voidonDestroy()

        super.onDestroy();
        mLocalActivityManager.dispatchDestroy(isFinishing());
    
protected voidonPause()

        super.onPause();
        mLocalActivityManager.dispatchPause(isFinishing());
    
protected voidonResume()

        super.onResume();
        mLocalActivityManager.dispatchResume();
    
public java.util.HashMaponRetainNonConfigurationChildInstances()
Returns a HashMap mapping from child activity ids to the return values from calls to their onRetainNonConfigurationInstance methods. {@hide}

        return mLocalActivityManager.dispatchRetainNonConfigurationInstance();
    
protected voidonSaveInstanceState(android.os.Bundle outState)

        super.onSaveInstanceState(outState);
        Bundle state = mLocalActivityManager.saveInstanceState();
        if (state != null) {
            outState.putBundle(STATES_KEY, state);
        }
    
protected voidonStop()

        super.onStop();
        mLocalActivityManager.dispatchStop();