File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Motion Sensor Programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Motion Sensor Programming" Watch "Motion Sensor Programming" New topic

Motion Sensor Programming

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
Hi guys,

Is there an API in Java to take advantage of a phone's motion sensor feature? I want to try especially on Sony Ericsson's W395.


SCJP 1.5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

I'd recommend looking at the specs for that phone. Normally they'll include a list of supported JSRs, and there may be one for sensors just as there's one for location services.

If not, check the manufacturer's SDK, and it will probably contain a vendor-specific API you can use.

An IDE is no substitute for an Intelligent Developer.
Raju Champaklal
Ranch Hand

Joined: Dec 10, 2009
Posts: 521
People think any child can program. Which is probably why so many programs behave like they were written by children.

nice one

scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later" someone unknown
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
Thanks Tim H.

From the Sony Ericsson Developer World site, it's funny that they would mention motion gaming support and yet not mention JSR-256 in the list of their supported JSR's and API's.


* CLDC 1.1
* WMA (JSR-120)
* MMAPI(JSR-135)
* Mobile 3D(JSR-184)
* Java Technology for the Wireless Industry(JSR-185)
* File/PIM(JSR-75)
* Mascot Capsule V3
* MIDP 2.0(JSR 118)
* Nokia UI API 1.1

This website mentioned JSR-256 support

Mobile Sensor API (JSR-256)

Thanks again.
I agree. Here's the link:
subject: Motion Sensor Programming
It's not a secret anymore!