Accelerometer bug on HTC Desire SV

Bugs will be moved here once resolved.

Post » Mon Apr 14, 2014 5:11 pm

Problem Description
Hello, I made a simple accelerometer test for my Android device(HTC Desire SV). There was a text object which was showing Alpha, Beta and Gamma(Touch.Alpha &" ; "& Touch.Beta &" ; "& Touch.Gamma). I was shaking my phone as I could but the text always was "0;0;0". And I know that accelerometer works perfectly on my device. For exaple, Doodle Jump is reacting.

Attach a Capx
.capx

Description of Capx
A text object showing every tick Alpha, Beta and Gamma orientations.

Steps to Reproduce Bug
  • Step 1. I created a new project.
  • Step 2. I tested this project on my phone via local WiFi.

Observed Result
The text always was "0;0;0"(Alpha = 0; Beta = 0; Gamma = 0)

Expected Result
The text is changing as I am rotating device and changing alpha, beta and gamma orientations.

Affected Browsers
  • HTC Browes: (YES)
  • CocoonJS's .apk: (YES)
  • Closswalk's .apk: (YES)

Operating System and Service Pack
Windows 7 64 bit

Tested on
Device: HTC Desire SV
Android version: 4.0.4

Construct 2 Version ID
r166
B
23
S
4
G
1
Posts: 57
Reputation: 2,065

Post » Tue Apr 15, 2014 11:43 am

Have you tried to see if also AccelertionWithGravity return no values?
I'm saying this because I faced a similar problem on a totally different device (Windows Phone) where Alpha, Beta and Gamma values returned 0 due to the lack of inclinometer (or gyroscope, don't remember) on lower spec devices like lumia 520.
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Tue Apr 15, 2014 12:34 pm

Have you tried Chrome for Android and Firefox for Android? If none of them can get it, are you sure the device really has an inclinometer? (Alpha, beta and gamma do not come from the accelerometer, a separate piece of hardware is necessary to determine the device orientation)
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Wed Apr 16, 2014 10:36 am

@Knifegrinder I also tried AccelertionWithGravity and it gave me 0 ; 0 ; 0
@Ashley I have tried Chrome for Android. Actually, Doodle Jump is working perfectly on this device, so maybe there are some other ways to get device's orientation?
B
23
S
4
G
1
Posts: 57
Reputation: 2,065

Post » Wed Apr 16, 2014 6:13 pm

@Ashley I tested on another HTC Desire SV and it also gives (0 ; 0 ; 0)
So, the question is: how many android devices doesn't support this feature?
B
23
S
4
G
1
Posts: 57
Reputation: 2,065

Post » Thu Apr 17, 2014 10:38 am

Closing this bug as won't fix: we listen for the standards-compliant devicemotion and deviceorientation events. If the device does not pass these events to the browser there is nothing we can do, it is a problem with either the device, or the browser.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Thu Apr 17, 2014 12:55 pm

@Ashley Okey! But can you say what other devices on Android won't support this feature? That't because I am making game for a publisher and a lot of people with Andoird devices will download it.
B
23
S
4
G
1
Posts: 57
Reputation: 2,065

Post » Thu Apr 17, 2014 1:34 pm

@sergyperov - I can't comment. I thought the majority of Android devices would support this.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Thu Apr 17, 2014 1:38 pm

@Ashley Okey thank you!
B
23
S
4
G
1
Posts: 57
Reputation: 2,065

Post » Thu Apr 17, 2014 7:04 pm

@sergyperov
I can assure you that the majority of the android devices out there support this.
I'm also testing a lot my game before the release on every phone and tablet I can get my hands on and had similar issues only with low-end cheap chinese tablet. Tested also on HTC newest devices (One and One mini) with no problems at all.
B
11
S
3
Posts: 224
Reputation: 2,028

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest