Is there a way to avoid user leaving an app on Android ?

1,703 views
Skip to first unread message

Arnaud Waels

unread,
Oct 12, 2011, 5:16:38 AM10/12/11
to kivy-...@googlegroups.com
Hi !

Considering a public app on Android (placed in a store for example), have you heard of a way to prevent the user from leaving the application and entering the system ?
But the power button still remains then ..
Has anyone already met this issue ? What could be an alternative then on a different os or device?

A

Mathieu Virbel

unread,
Oct 12, 2011, 8:37:24 AM10/12/11
to kivy-...@googlegroups.com
I think thomas have got something working by removing or replacing
part of android, but you need to be root. He'll be more able to talk
of that.

Thomas ?

2011/10/12 Arnaud Waels <awa...@gmail.com>:

Thomas Hansen

unread,
Oct 12, 2011, 1:18:06 PM10/12/11
to kivy-...@googlegroups.com
We did something similar for the bargenius
(http://fresklabs.com/projects/bargenius). I'm not sure it's the
optimal solution, but here's what we did for the motorolla xoom:

* root the device. you can find instructions online. please do this
at your own risk and. IT WILL VOID YOUR MANUFACTURERS GUARANTEE!

* once rooted, you can use adb shell, or some other method to delete
or rename the SystemUI package under /system/apps. This will make it
so the system ui bar at teh bottom with the home button etc, will be
permanently removed

* if you want your application to autostart (instead of the launcher)
you can add the following categories to the xml config of your app
(youl be asked which one to launch by default once, and can reset it
in system settings):
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />

* using os.system(), you can call execute the built in "am" program to
start other programs, to e.g. switch to settings if you want some
"secret" way to exit the app (I also just found this
link:http://android.serverbox.ch/?p=306, looks liek maybe you don't
have to remove SystemUI completely but can start/stop it using "am" as
well)

--
Thomas

Arnaud Waels

unread,
Oct 13, 2011, 5:32:02 AM10/13/11
to kivy-...@googlegroups.com
Thanks a lot ! :)
I m gonna try this

2011/10/12 Thomas Hansen <thomas...@gmail.com>
Reply all
Reply to author
Forward
0 new messages