I am developing an application and I have finished it. I just need to know how is the way to hide the launcher application.
That is, the application that opens once and is hidden, so it does not show up in the Android app drawer.
I found this code on the web and I do not know how to implement it
PackageManager pm = getApplicationContext().getPackageManager();
pm.setComponentEnabledSetting(getComponentName(),
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP);