sensor-api in java supporting multiple platforms