ESC function in Android Studio

Asked

Viewed 358 times

1

A customer uses its own application in a data collector with Android 5.0+ system. The data collector is like a very robust smartphone used by companies, and in this case it has a physical keyboard full of buttons, as the old phones.

This customer, at some point, needs to press the ESC key inside their application. But he doesn’t use the virtual keyboard and the device doesn’t have that physical key.

What to do then?

I thought of two strange things, and I don’t even know where to start them and I would like suggestions or indications.

1 - This device has function keys, which are physical buttons that allow you to assign an APP to them. For example, you can assign Chrome to a button and pressing it opens Chrome. So I thought of something like an invisible app. In this app, his only function would be to send the command of the ESC key. Then he would associate it to the physical button. However, it could not open, obviously, pq if it would not take the place of customer application. It would have to, I don’t know how, open in the background, send the ESC command, and then close. Visually, the user wouldn’t notice anything.

2 - Somehow map the buttons of the device and assign the ESC command to any button.

Honestly, I have no idea where to start. I know it’s unusual and maybe a little controversial. But I’d really like some light, or flashlight, from you.

Thank you.

Jay.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.