FileDocCategorySizeDatePackage
ActivityGroup.javaAPI DocAndroid 5.1 API3950Thu Mar 12 22:22:08 GMT 2015android.app

ActivityGroup

public class ActivityGroup extends Activity
A screen that contains and runs multiple embedded activities.
deprecated
Use the new {@link Fragment} and {@link FragmentManager} APIs instead; these are also available on older platforms through the Android compatibility package.

Fields Summary
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 (false) 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();