Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - RattlerCreed

#1
Quote from: spacefractal on 2013-Nov-02
EDIT: removed the later post and joined to this one, sorry.

Property, only the accelerator sensors is supported, which means you need some java calls to access other kinds of sensors.

The major issue is glbasic can only supports one kind of sensors from java, which is due to this function in SDLActivity.java (there is no id argument):
public static native void onNativeAccel(float x, float y, float z);

That mean to access the gyroscope, you need add them and doing new java calls to checks those values, due you cant send them back to the nativeaccel function. But instead you need to checkout the sensors values trought javacalls.



Cheers for the information how ever I've never programmed in Java so I wouldn't have clue whereto start.
#2
Quote from: spacefractal on 2013-Nov-02
Have you tried to remove the android projekt? Is Sound like a manifest.xml error

Yeah it must of been that as i created a new project and works fine. Gyroscope still not working tho.
#3
Its fixed now did as you said and created a new project and seemed to work Thanks For all the help kanonet.  :nw: very strange. :S
#4
I've tried it again still the same uninstalled and re-installed but same problem. Does it matter what version of java you have?
#5
Yeah I've just updated to V12 now I'm getting this when i try n compile for android?

Code (glbasic) Select

BUILD FAILED
C:\Program Files (x86)\GLBasic_v12\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:539: The following error occurred while executing this line:
C:\Program Files (x86)\GLBasic_v12\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1


Any ideas?
#6
Hi All

Is there anyway I can access the gyroscope sensor on a android device?

Ok I've tried use GETJOYRX() ,GETJOYRY() ,GETJOYRZ() thinking that would have some effect but they don't even change value.