I searched but did not get solution for this. I want to show home screen like pressing home key in android devices by click on button.
1 Answer
You can show the homescreen like this:
Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);
-
In that case, please accept the answer so others can find it :) Dec 24, 2013 at 10:32