Hi:
I'm working on a launcher app, where the user will just be able to use my app, i already managed to hide the system bar and set the application to fullscreen, but i'm not able to set the application to be the Main launcher, i want the application to start after system boots, that's why i want to make it a launcher app.
Does anyone how to make it a launcher app?, please help me.
Here it's the code i used to hide the system bar, actually im working on rooted devices, and this method needs to be root.
try{
//REQUIRES ROOT Java.Lang.Process proc = Java.Lang.Runtime.GetRuntime().Exec(new String[]{"su","-c","service call activity 42 s16 com.android.systemui"}); proc.Wait(); }catch(Exception) {}
The code below does not requires root, it's a normal code, on some devices it's enough to hide the bar, but on some other devices does nothing, that's why i used the root method exposed up.
//Remove Title Bar this.RequestWindowFeature(WindowFeatures.NoTitle);
//Set Fullscreen this.Window.AddFlags(WindowManagerFlags.Fullscreen);