Device Orientation API

Helge Hafting helge.hafting at hist.no
Wed Sep 9 16:32:54 CEST 2009


Michael 'Mickey' Lauer wrote:
> Hi folks,
> 
> 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".

Good idea.
I assume orientation changes is only reported to apps that actually ask 
for them? So that the accelerometers can be turned off to save power 
whenever no apps happen to be interested.

And of course, apps that can't use the information shouldn't need to use 
the cpu time either.

Helge Hafting



More information about the community mailing list