Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: How to control the home button
    primarykey
    data
    text
    <p>We're trying to provide an application to the mentally and physically handicapped daughter of my neighbor that let's her use an Android tablet as a Talker, i.e., she presses a few big buttons and the devices generates speech. The application is basically a WebView and an additional object in Javascript used to perform and control the speech generation, plus some logic to handle the orientation changes. Html files are generated offline for her specific layout of the talking items. We've also added some music playing and picture viewing facilities to make the device more appealing to her.</p> <p>Problem is that the home button brings her back into the madness of the Android launcher screen, and that on the test device (Archos 70) the home button is not a physical button but rather shown on the touch screen itself, making it too easy to accidentally hit it.</p> <p>So I'd like to return to the Android launcher only by pressing a sequence home, back, home with no other action in between.</p> <p>Can I achieve this by making my application itself the launcher? How can I then get back to the original launcher upon the home, back, home sequence? It seems that this goes deep into the innards of Android, huh?</p> <p>The only clue I found so far is <a href="https://stackoverflow.com/questions/2862629/overriding-home-button-for-a-car-home-replacement-app/4538477#4538477">Overriding Home button for a Car Home replacement app</a>, but this is rated -1 and reported to work in the emulator only. Also I doubt if I could completely abandon the original launcher, as otherwise there is no access anymore to e.g. the USB mass device control to allow new HTML files to be downloaded, the application to be killed and restarted, and so forth.</p> <p>I'm willing to go for a kludge as well. Maybe a background service could be started that would bring the application to the front again as necessary?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload