onilink25 / android-bluez-ime

Automatically exported from code.google.com/p/android-bluez-ime
0 stars 0 forks source link

I'm not able to detect EVENT_ACCELEROMETERCHANGE #238

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of BluezIME are you using?
last revision trunk revision #97

What Android device do you have? What Android version?
Samsung Galaxy S with a custom rom, 4.1.2

What gamepad are you using?
Original wiimote

What steps will reproduce the problem?
I'have created an application that uses the BlueIMEZ service. I'm able to 
connect the original wiimote without any problem and also I'm able to capture 
events from buttons and analog joystick but I'm interested on the 
accelerometer. I have registered the accelerometer event and also capture 
events but I do not capture anything, I have no idea why is this happening. 
I've attached the activity im using so you can reproduce the problem.

registerReceiver(statusMonitor, new IntentFilter(EVENT_ACCELEROMETERCHANGE));

if (intent.getAction().equals(EVENT_ACCELEROMETERCHANGE)) {
-....
}

Moreover, the request rumble is not working.

Thanks for your time,

Regards

Original issue reported on code.google.com by robzomb...@gmail.com on 26 May 2013 at 8:46

Attachments:

GoogleCodeExporter commented 8 years ago
You need to activate this, by sending an event with:
REQUEST_FEATURECHANGE="com.hexad.bluezime.featurechange"

And the extra data:
REQUEST_FEATURECHANGE_ACCELEROMETER = "accelerometer"

Sample code:
Intent req = new Intent(REQUEST_FEATURECHANGE);
req.putExtra(REQUEST_FEATURECHANGE_ACCELEROMETER, true);
startService(req);

Accelerometer data is disabled by default because it really produces massive 
amounts of data and this requires processing power and battery.

Let me know if that helps.

Original comment by kenneth@hexad.dk on 9 Jun 2013 at 12:25