Blog de Contraslash (Legacy)

Go Home Screen Android

January 29, 2016

Go Home Screen Android

    Intent startMain = new Intent(Intent.ACTION_MAIN);
    startMain.addCategory(Intent.CATEGORY_HOME);
    startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(startMain);