Skip to main content

Handset Orientation detection

5 replies [Last post]
digitalmpu
Offline
Joined: 2007-08-15

Is there a way I can detect the orientation of the handset with respect to the user i.e. if the handset is held horizontal / vertical?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Vince Batchelor

The upcoming K850 and W910 from Sony Ericsson support JSR 256.

On 8/21/07, meinterest@mobileandembedded.org <
meinterest@mobileandembedded.org> wrote:
>
> There is also a Mobile Sensor API (JSR 256) that Nokia led the spec for
> but I have yet to find any decent info about JSR 256 anywhere or anything
> about a reference implementation or supporting hardware though.
>
> -David
> [Message sent by forum member 'davjoh' (davjoh)]
>
> http://forums.java.net/jive/thread.jspa?messageID=231788
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Daniel Rocha

Orientation detection is part of JSR 179. However it's not available on
all handsets, as that depends on it having a compass. Uou can get an
example of use of the Orientation class of Location API here:
http://sw.nokia.com/id/f7e8ad78-7898-4053-ab83-74c147923866/MIDP_Locatio
n_API_Example_Tourist_Route_v1_0.zip

Daniel
Forum nokia

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext
owner-kvm-interest@JAVA.SUN.COM
Sent: Thursday, August 16, 2007 3:49 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Handset Orientation detection

possibly, if the handset has the functionality to detect it itself and
that functionality is exposed through a public API.
You'd have to see the documentation for each individual handset for it,
or maybe it's by now available through the operating system (though I
doubt it).
[Message sent by forum member 'jwenting' (jwenting)]

http://forums.java.net/jive/thread.jspa?messageID=231015

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

davjoh
Offline
Joined: 2007-07-18

There is also a Mobile Sensor API (JSR 256) that Nokia led the spec for but I have yet to find any decent info about JSR 256 anywhere or anything about a reference implementation or supporting hardware though.

-David

Richard Marejka

Sun is currently hosting an "Ask the Experts" session on MSA, details
below.

August 20-24, 2007

Topic: Mobile Service Architecture (MSA), JSR 248

Experts:

Mikhail Gorshenev, senior staff engineer, Sun Microsystems
E-ming Saung, Product Line Manager, Java ME Marketing group, Sun
Microsystems
Hinkmond Wong, senior staff engineer , Java ME group, Sun Microsystems
Mobile Service Architecture (MSA), is a Java ME optional package that
defines the next generation Java ME platform and serves as a follow-
on to Java Technology for the Wireless Industry (JTWI). MSA is
defined through the Java Community Process (JCP) as JSR 248 by an
expert group of leading mobile device manufacturers, wireless
carriers, and software vendors. The MSA specification aims to address
fragmentation issues and create a predictable environment for
application developers who build applications for mobile handsets.
The specification defines a standard set of application functionality
for mobile devices, while clarifying interactions between various
technologies associated with the CLDC and MIDP specifications.

Got a question about MSA? Post it during this session and get answers
from Mikhail Gorshenev, E-ming Saung, and Hinkmond Wong. Mikhail
Gorshenev is Sun's lead for the JSR 248 Technology Conformance Kit
(TCK). E-Ming Saung is the Product Line Manager in the Java ME
Marketing group and is mainly responsible for managing the product
delivery of Java ME SDKs to all mobile Java Developers. Hinkmond Wong
is one of the current project owners of the phoneME open source
project and was the past specification lead for various mobility-
related technologies such as the Java ME Connected Device
Configuration (CDC) and Foundation Profile.

Click here to enter and submit your question.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

jwenting
Offline
Joined: 2003-12-02

possibly, if the handset has the functionality to detect it itself and that functionality is exposed through a public API.
You'd have to see the documentation for each individual handset for it, or maybe it's by now available through the operating system (though I doubt it).