No, Tucker, we have the same concept of what portrait and landscape
mean. But Android will judge that an application is in landscape mode
using the accelerometer data, not caring if you have a square display.
Take that Motorola phone. If you hold it upright, tilt it left 90
degrees then the accelerometer will send the Android app an event
saying: "We are going into landscape mode", no matter what the screen
resolution of the display is. Maybe that's Google/Android's engineer's
misinterpretation of landscape, so complain to Google if you want.


On Tue, Jul 13, 2010 at 12:37 AM, P T Withington <[email protected]> wrote:
> On 2010-07-12, at 18:09, Raju Bitter wrote:
>
>> You are welcome, Max.
>>
>> Thanks for your comment, Tucker. I understand what you mean, but I
>> think it's more complex than it initially seems to be.
>>
>> What about browser APIs? If the browser has orientation information,
>> what would be the proposed way by the OpenLaszlo team to retrieve that
>> information in both Flash and DHTML runtime?
>
> I have no objection to exposing this information.
>
> LZX has two ways it does this:
>
> 1) We try to come up with a platform-neutral API and map the 
> platform-specific into that.
>
> 2) We never prevent people from calling directly into the 
> (undocumented/unsupported, on LZX's part) platform API when the need to 
> (unlike Apple).  Go ahead.  Make your innovative app that depends on an API 
> we have not yet codified in LZX.  We want to see people innovate.  But please 
> don't complain when your app breaks!
>
>> @Tucker: Regarding your question "If the app wants to present
>> different layouts based on landscape or portrait orientation, why
>> should it base that on some hardware device sensor?  I should be able
>> to resize my browser window and get the same layout."
>> There are quite a few applications which don't autorotate the whole
>> app but content within the app. Here's a blog post of a developer
>> describing that:
>> http://blog.sallarp.com/shouldautorotatetointerfaceorientation/
>
> I don't get your point here.  Except that I think it re-enforces my point.  I 
> want simple apps to not have to even know they are running on a device that 
> can be turned upside down.  My eyes glazed over as soon as I saw the diagrams 
> on that blog where the coordinate system goes upside down and backwards and 
> he has to deal with it in his app!
>
>> Square displays and portrait/landscape mode: If you an Android based
>> phone, the OS is relevant, and Android generally supports portrait and
>> landscape modes. Within Android apps, you can have different views
>> with different behavior regarding autorotation of content for each
>> view. If such an application will be launched on a device with a
>> square display, the views will rendered based on the setting for
>> orientation for the app, or pars of the app.
>
> I must just have a different concept of what portrait and landscape mean than 
> you do.

Reply via email to