I need some help finding a code for this application I'm working on that is supposed to function as follow:
Whenever the user tries to open an installed application on his phone, he'll be automatically transferred to the home page launcher.
I have the code to get me to the home page launcher, but i need use it whenever the user run an app.
the code:`
Intent homeIntent = new Intent(Intent.ACTION_MAIN);
homeIntent.addCategory(Intent.CATEGORY_HOME);
homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(homeIntent);`