I have succeeded in launching the default home launcher through the following code while working with the emulator:
Intent de_intent=new Intent();
de_intent.setClassName("com.android.launcher","com.android.launcher2.Launcher");
startActivity(de_intent);
But when I am executing this code in the real device, it is showing following exception:
Unable to find explicit activity class {com.android.launcher/com.android.launcher2.Launcher} have you declared this in AndroidManifest.xml
Can anybody help me to solve this issue?