If you can lock your own app down in kiosk mode, you can probably launch another app by Intent()
with some flags
indicating the intent is hosted by your activity to continue your kiosk. You will also have to mess around with the launch mode your app is running in the AndroidManifest. Mess around with singleTop
, singleTask
and singleInstance
until you find what you want. singleTop
should be the one you're looking for, but it's hard to discern.
If all else fails, you can always launch your intent and then do a 'adb kill SystemUI' kind of thing through exec("su")
in order to kill the status bar, softkeys&hardkeys, and navigation. Depending on device, SystemUI will probably restart itself. You can use a Timer though. Dirty workaround, but that's what kiosk is all about. For code, you can use the answer here: exec su inside Android app
Hope I helped,