You must run the application for android in the "Kiosk Mode". It is necessary that the user could not close or minimize the application, as well as enter the device settings.
The task is to make an application for reviews. It will work on a tablet available to customers.
To accomplish the task, I already did the following (using Xamarin):
Launched the application as a launcher and deployed the application to full screen:
[Activity(Label = "App1", MainLauncher = true, Icon = "@drawable/icon", Theme = "@android:style/Theme.Light.NoTitleBar.Fullscreen")] [IntentFilter(new[] { Intent.ActionMain }, Categories = new[] { Intent.CategoryHome, Intent.CategoryDefault })]I made the button back event handler blank:
public override void OnBackPressed(){}
Now the user can use the notification panel and the home button and the back button. Access to the buttons home and back is not terrible, because the home button returns the user to the application, and the launcher (this application) cannot be closed from the task menu.
You need to block the notification panel or make it almost impossible to use it (so that the user cannot enter the settings, turn off Wi-fi, and so on). There is a root of law .
It is impossible to use electrical tape, colorless varnish, break the touchscreen and other hardware ways to block access to the notification panel.
Supplement 1
Using the following code causes the screen to turn off completely before rebooting. Perhaps if the command to disable only the status bar?
Java.Lang.Process proc = Java.Lang.Runtime.GetRuntime().Exec( new String[] { "su", "-c", "service call activity 42 s16 com.android.systemui" }); proc.Wait(); Supplement 2
When using the programs full! Screen and Hide System Bar (Full Screen) the program is not displayed. Only the desktop image is displayed and nothing else before the reboot. Prestigo multipad weze 3341 3g tablet (PMT 3341_3G), android 5.1.1