Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Accelerator issue - not working

Author
Message
Midget Blaster
AGK Developer
8
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 9th Sep 2016 21:39 Edited at: 9th Sep 2016 21:42
Hey, the code I am using is simply

It says that an accelerometer does not exist and it returns 0. I am using a Samsung Galaxy Grand Prime and it says it has an accelerometer. I downloaded other apps such as an accelerometer sensor tester and it worked just fine. It detected it and everything. Is this a glitch? Information websites say the phone has an accelerometer, but it does not have a gyroscope. Are they the same thing? If so, what is the difference?
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 10th Sep 2016 09:53
Try the getrawaccelx / y / z commands. If they work, then I guess GetDirection is broken.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Midget Blaster
AGK Developer
8
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 10th Sep 2016 11:45
Yeah, I tried those aswell. Anyone else experience this issue?
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Sep 2016 12:50
I'm not sure how that could be happening, we use the Android methods of accessing the accelerometer, albeit from the NDK rather than the SDK. Is your version of Android up to date?
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 13th Sep 2016 14:25
Ahh yes! Good shout Paul. What firmware are you using? I recall some older Cyanogenmod releases had sensor issues so probably worth making sure you are fully up to date.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Midget Blaster
AGK Developer
8
Years of Service
User Offline
Joined: 7th May 2016
Location:
Posted: 14th Sep 2016 18:33
Yes Paul, My phone is up to date on Android 5.1.1

Login to post a reply

Server time is: 2024-11-25 01:59:32
Your offset time is: 2024-11-25 01:59:32