Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #2715

Re: Android Orientation Sensor

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Fri, 01 Apr 2011 22:30:16 -0500
Date Fri, 01 Apr 2011 20:30:10 -0700
From Patricia Shanahan <pats@acm.org>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Android Orientation Sensor
References <in639a$p2v$1@lust.ihug.co.nz>
In-Reply-To <in639a$p2v$1@lust.ihug.co.nz>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <NZydnaGdCtbVBQvQnZ2dnUVZ_oKdnZ2d@earthlink.com> (permalink)
Lines 23
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 75.8.126.96
X-Trace sv3-5sjTQNfW88KfFf9q4Xa+g8uH3BOd8DdpS/v1jrldfHlit6x2RpCJJf935G+GE6bXJ938vAGaubRVC8Y!5f2FkKozBJJaoWoniBfnq8YmnaiDoe1cSnElUtt8hGgh+wuKY1KbS5+OfZB9w/3fxSXpYxhroieY!kGSn7dA8N5DsHy0oEpT0ypVBRa34U8DO37pFBWqW5ps=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2021
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2715

Show key headers only | View raw


On 4/1/2011 7:56 PM, Lawrence D'Oliveiro wrote:
...
> The documentation for the sensor data
> <http://developer.android.com/reference/android/hardware/SensorEvent.html>
> says
>
>      Note: This sensor type exists for legacy reasons, please use
>      getRotationMatrix() in conjunction with remapCoordinateSystem() and
>      getOrientation() to compute these values instead.

I *think* this comment refers to using e.g. Sensor.TYPE_ORIENTATION 
directly. Instead, if I'm reading the documentation correctly, you are 
supposed to take the values from a TYPE_ACCELEROMETER and 
TYPE_MAGNETIC_FIELD and feed them to getRotationMatrix().

>
> Trouble is, none of those API calls mentioned actually reads any sensor
> values
> <http://developer.android.com/reference/android/hardware/SensorManager.html>,
> they only perform computations.
>
>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

Android Orientation Sensor Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-02 15:56 +1300
  Re: Android Orientation Sensor Patricia Shanahan <pats@acm.org> - 2011-04-01 20:30 -0700

csiph-web