[SOLVED] shifted touch area for overlay button

Post Reply
koltayk
Posts: 6
Joined: Thu Jan 05, 2017 6:20 am
languages_spoken: hungarian german
ODROIDs: C1+, C2
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED] shifted touch area for overlay button

Post by koltayk »

I wrote a little android app that has a button always on the top. This button works fine on my mobile phone (marshmallow), on my tablet (lollipop) and also on my ODROID C1+ (KitKat) with a 7" capacitive touch screen.
But not on the ODROID C2 (neither lollipop nor marshmallow, same touch screen).
The problem is that if I touch the button nothing happen, but left from the button the touch is accepted.
For example if the button has 400 < x < 450 and 300 < y <320, than the touch area is 0 < x < 50 and 300 < y <320.
This is only for my system overlay button, the other apps working fine.
Only by ODROID C2.
My app: https://www.dropbox.com/s/8o92kdg07qkag ... ar.gz?dl=0
Attachments
Screenshot.png
(162.92 KiB) Downloaded 424 times

rooted
Posts: 7758
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 721 times
Been thanked: 210 times
Contact:

Re: shifted touch area for overlay button

Post by rooted »

My guess is it's a DPI problem.

User avatar
odroid
Site Admin
Posts: 34681
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 832 times
Been thanked: 719 times
Contact:

Re: shifted touch area for overlay button

Post by odroid »

Do you use Vu7? or Vu7+?

koltayk
Posts: 6
Joined: Thu Jan 05, 2017 6:20 am
languages_spoken: hungarian german
ODROIDs: C1+, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: shifted touch area for overlay button

Post by koltayk »

This is a 1024x600 touch screen
https://de.aliexpress.com/item/7-inch-R ... 93138.html

lsusb
Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 0483:5750
Bus 001 Device 004: ID 0bda:8176
Bus 001 Device 005: ID 0e8f:00fb

Perhaps Bus 001 Device 003: ID 0483:5750

dmesg
[ 3.427382@2] ionvideo-000: V4L2 device registered as video13
[ 3.432663@2] [dsp]register dsp to char divece(257)
[ 3.438380@0] input: 深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标 as /devices/dwc2_b/usb1/1-1/1-1.2/1-1.2:1.0/0003:0483:5750.0001/input/input0
[ 3.452136@2] amaudio: driver amaudio succuess!
[ 3.456383@2] amlvideo_init called
[ 3.459569@2] amlvideo_create_instance called
[ 3.464077@2] v4l2_dev.name=:amlvideo-000
[ 3.464183@3] hid-multitouch 0003:0483:5750.0001: input,hiddev0: USB HID v1.10 Mouse [深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标] on usb-dwc2_b-1.2/input0
[ 3.483763@2] amlvideo-000: V4L2 device registered as video10

User avatar
odroid
Site Admin
Posts: 34681
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 832 times
Been thanked: 719 times
Contact:

Re: shifted touch area for overlay button

Post by odroid »

I don't have the same model and I don't know what's wrong.
Our Vu7+ touch screen ID is 16B4:0705.

Anyway, we will try your app on our Vu7+ with C2 tomorrow.

Edit: We could reproduce the issue we will try to find a root cause.

koltayk
Posts: 6
Joined: Thu Jan 05, 2017 6:20 am
languages_spoken: hungarian german
ODROIDs: C1+, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: shifted touch area for overlay button

Post by koltayk »

Perhaps a 64bit problem?
ODROID C1+ does not have the issue (at least on kitkat).
ODROID C2 has the issue with lollipop and with marshmallow..
Last edited by koltayk on Fri Jan 06, 2017 6:45 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 34681
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 832 times
Been thanked: 719 times
Contact:

Re: shifted touch area for overlay button

Post by odroid »

We could reproduce the issue on C1+ Android Lollipop too.

Give us a week to fix the issue.

User avatar
odroid
Site Admin
Posts: 34681
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 832 times
Been thanked: 719 times
Contact:

Re: shifted touch area for overlay button

Post by odroid »


koltayk
Posts: 6
Joined: Thu Jan 05, 2017 6:20 am
languages_spoken: hungarian german
ODROIDs: C1+, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: shifted touch area for overlay button

Post by koltayk »

Thank you!
The problem is solved. It works fine now.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest