Author Topic: Issues with android devices  (Read 4027 times)

caldofran

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Issues with android devices
« on: January 09, 2014, 03:55:02 AM »
Hi!

I'm experimenting some weird problems with certain Android devices. I have a Nexus 7 tablet (1.280 x 800), an old (and low spec) Android 4.0 tablet (800x480) and a Nexus 5 (1920x1080) phone. I'm using NGUI v2.5.1 with Unity 4.3

The problem occurs when trying to touch the screen, for example, a UICheckBox (which aren't small, but not bigger enough), i must touch several times to make a valid touch (i've notice that touching a little bit above, the touch is better detected), i was experimenting this issue in all devices, but only in Android ones, using the Unity Editor and a Windows Phone nothing happens.

Ok, yesterday I generated a signed apk for the first time, and surprise, the touch accuracy problem dissapeared, but only in the Android tablets, the Nexus 5 phone continued experimenting the issues.

Is there any reason for this behaviour? does the screens resolution (or aspect ratio) affect Unity's touch accuracy?

Thanks!

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Issues with android devices
« Reply #1 on: January 09, 2014, 08:33:57 AM »
Given that people have used NGUI with Android apps successfully for some time now, my first theory would be how you have the UI set up. Are your box colliders aligning properly (have you disabled autoscaling on some of them)?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Issues with android devices
« Reply #2 on: January 09, 2014, 06:57:38 PM »
NGUI 2.5.1 is extremely old and is not supported. Even 2.7.0, the last of the NGUI 2 cycle is not supported. Only the latest version in the NGUI 3 cycle is officially supported.

caldofran

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Issues with android devices
« Reply #3 on: January 10, 2014, 03:08:18 AM »
Hi everybody,

Yeah, I didn't update the NGUI package, but no problem. i've put a question in Unity's forum, and the problem could be caused by a known issue of the 4.3 version of Unity which makes all the touches been recovered randomly with an offset. It only appear (not allways) when the statusbar is present. They said that a fix is on the way...

Thank you folks!