Skip to content
ppareit edited this page Jan 10, 2012 · 1 revision

HideBar indeed does not work with HTC devices. This is because the touch screen is digitalized for those devices. A fix should be possible, but I do not have access to an HTC device.

The type of screen on the HTC is very different then my own test android device. The HTC's have a digitalized screen, while most tablets currently have a capacitive screen. For me, without actual acces to such a device, adding support is hard.

If you are into it. You can add the support. The code of HideBar does not find the touchscreen correctly. Adding the touchscreen should be done in the class GlobalTouchListener, around line 100. This is the least of the problem. Further in the code, you see that the output of getevent is parsed. The output for digitalized screens is completely different then that for capacitive screens. So you will have to decode it. You will have to extract the x and the y coordinates from the (hex) output.

You can start getevent from adb with

$ adb shell getevent.

It is also handy to give it the parameter -p once to get more information about the devices. It is also possible to filter the output for certain devices, see the relevant documentation (or use grep).

So your main task will be understanding the output of getevent. Once that is done, GlobalTouchListener can be rewritten to take this new device into account.

If you have any questions, don't hesitate to ask. I know that understanding everything in a new project is initially hard. Don't hesitate to ask me clarifications. I will also try to answer any questions you have (where relevant) relating to android, git, java or eclipse.

This is a wiki page based on emails I send about the subject. You are free to change this information to help others/yourself/me.

Clone this wiki locally