Im developing an android application for a school and i want this application when opened to prevent the user from doing anything on the device except what im offering inside my application, and i mean doing NOTHING else... so first the Navigation bar should be disabled and hided
i saw this but its for 4.4+ and it doesn't solve the problem because if you swipe the screen you will get the menu back. (How to hide navigation bar permanently in android activity?)
this doesn't work also(Permanently hide navigation bar on activity) (Is there a way to hide the system/navigation bar in Android ICS) i also tried to disable navigation bar actions using onKeyDown but it didn't work on all of the keys.
in addition i want to remove the notification bar which make the user access the settings of the device and other things..
and this not working also (Disable the notification panel from being pulled down) as mentioned in this link it doesn't solve it, it just hides it after showing it :S
help would be appreciated,
Thanks.