views:

24

answers:

0

Hi. I have a problem with the JSR-256. It's working fine for most of the time but sometimes it just gets stuck. I have a SensorConnection, called sensor, and from time to time (i.e. from a TimerTask) I ask the sensor for some data like so:

Data[] data = sensor.getData(1);

However, as I said, sooner or later, the app calls the method and never returns from it. And it needs quite some time for the AMS to close the app.

Any ideas are welcome. Thanks!