I’m making an Android app and I would like to know how to hide its icon and title from showing in the menu. Everything I’ve found so far on the internet is hiding
<category android:name="android.intent.category.LAUNCHER" />
in AndroidManifest.xml.
If I do that it doesn’t start after installation! Another important note: I need my app to ALWAYS be running, even after restarting the phone.
Correct. Effectively, as of Android 3.1, you must have a launcher icon, at least at the outset.
I have no idea what “ALWAYS turned on” means in terms of an application. I am going to assume you mean “ALWAYS running”.
In that case, this is not possible. Users can and will stop your app by any number of means, such as task killers and the force-stop option in Settings. The Android OS will automatically stop your app if it is hiding in the background for too long. It is considered poor form to have some piece of your application (a service) running constantly — very few applications need this.
Moreover, please bear in mind that the combination of “I need it always running” and “I do not want it to appear in the launcher” sounds very suspicious, almost as if you are trying to write something that the user might not want to have running.