FileDocCategorySizeDatePackage
DisableCarModeActivity.javaAPI DocAndroid 5.1 API1472Thu Mar 12 22:22:10 GMT 2015com.android.internal.app

DisableCarModeActivity

public class DisableCarModeActivity extends android.app.Activity

Fields Summary
private static final String
TAG
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)


    
        
        super.onCreate(savedInstanceState);
        try {
            IUiModeManager uiModeManager = IUiModeManager.Stub.asInterface(
                    ServiceManager.getService("uimode"));
            uiModeManager.disableCarMode(UiModeManager.DISABLE_CAR_MODE_GO_HOME);
        } catch (RemoteException e) {
            Log.e(TAG, "Failed to disable car mode", e);
        }
        finish();