Android Tablet
Hello!
I am currently implementing an Open Sesame experiment into an Android tablet. The experiment consists of three tasks/games and is currently being tested by a bunch of people. A consistent problem that has been relayed back to me is that accidentally pressing the buttons on the tablet results in a lag/black screen and sometimes a crashing of the program. I changed the escape function in the program in hopes that this would no longer happen, but it seems that the escape function is only connected to the 'back' button on the tablet. So now, the 'back' button works ideally to where the user can no longer use it to escape from the experiment, however I’m not sure how I can change the way the 'home' button and the 'view tabs' button affect the experiment. I want to ensure that there is no pause in the middle of any of the tasks, so essentially if the user presses any button causing them to leave the experiment/app I want the experiment to reset from the beginning of the task that they were on. I think I can do this using the escape function, but since that only affects the back button, is there a way I can also change the program to where this would occur when the user also hits the home button and the view tabs button? Any help would be greatly appreciated, thank you so much!
Comments
Hi @mchu ,
I don't think it's possible to override this behavior, because doing so would allow an app to hijack your device.
More importantly, though, the Android runtime is no longer maintained and no longer works on most modern Android devices. If this is not an issue for you (because you're aware of this and use devices that do work), then of course that's totally fine. But I just want to make sure that you're aware of this!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!