Device Orientation API

Rui Miguel Silva Seabra rms at ansol.org
Mon Sep 7 23:44:27 CEST 2009


On Mon, Sep 07, 2009 at 09:36:21PM +0200, Michael 'Mickey' Lauer wrote:
> I'm sketching a simple device orientation API for FSO. The purpose is to be 
> informed about changes in the physical device orientation. My first take is at 
> http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.Orientation.html;hb=HEAD
> 
> Basically, it's sending you a string whenever the orientation changes. Valid 
> substrings contain "portrait", "landscape", "faceup", "facedown".
> 
> Comments?

I agree wholeheartedly. omnewrotate was only a way to do "rotation" better than
the alternatives, but such use of accelerometers is too shallow.

IMHO it's better that the position is declared as sets of angles and that
"portrait", et all be "aliases" for certan sets of angles within a certain
tolerance, that certain listening apps would only pay attention to.

This way, perhaps, one could mix flexibility with ease?

Rui



More information about the community mailing list