I’ve also tried with another device: a samsung galaxy note 10.1 with android 4.1.2, but same problem… I’ve tried to run several code samples I’ve found in the forum but nothing. I know I must be doing something wrong but I’m new at this and I don’t know what else to try… Thank you again!
in the constructor of the MainActivity class solved the problem. I just thought that including this line:
[java]settings.setUseJoysticks(true);[/java]
in the main method was enough. In other words, I thought that using the joystick abstraction there was no need of editing the MainActivity class.
Thank you for your help.
[java]settings.setUseJoysticks(joystickEventsEnabled);[/java] is set in AndroidHarness. I did it this way so that the MainActivity class could control whether or not the Android sensors were enabled for battery life reasons.
There is a disconnect right now between AndroidHarness (aka MainActivity) and appSettings that I want to eventually clean up.
Also, some work needs to be done in the sensor joystick area to allow for the sensor joystick feedback to be enabled/disabled after the app starts. Right now, it needs to be enabled before the app starts which is why it is located in MainActivity.