How how can we keep Overlay Surface unchanged when switch from Portrait to Landscape mode

by tony » Wed, 29 Apr 2009 08:26:55 GMT


Sponsored Links
 In current android implementation,all the Surface will rotate 90degree
when switch to landscape.

We have requirement to keep the video unchanged (no rotation) and it
seems the only way is to ignore the orientation in
LayerBuffer::OverlaySource::onVisibilityResolved().

Please let me know if you have comments.
--~--~---------~--~----~------------~-------~--~----~



How how can we keep Overlay Surface unchanged when switch from Portrait to Landscape mode

by Dave Sparks » Wed, 29 Apr 2009 17:31:08 GMT


 The application chooses the orientation. You can't force this from the
hardware layer.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How how can we keep Overlay Surface unchanged when switch from Portrait to Landscape mode

by Feike » Thu, 30 Apr 2009 05:19:05 GMT


 I met this issue too, I suggest google should add a new attribute
NO_ROTATION in frameworks/base/core/java/android/view/Surface.java,
then check it in LayerBase.cpp::validateVisibility(...) function to
decide if re-calculate the orientation and position for this layer
(surface). So it will provide a capability for user to control each
surface's rotation.

For example:
Camera application's controller surface need rotate according to the
phone status(landscape or portrait), but its viewfinder surface
needn't rotate.
In current android platform, we can correct it in
LayerBuffer::OverlaySource::onVisibilityResolved(), but it will
prevent all surfaces that use overlay to rotate, it isn't good method.




--~--~---------~--~----~------------~-------~--~----~



How how can we keep Overlay Surface unchanged when switch from Portrait to Landscape mode

by tony » Thu, 30 Apr 2009 10:00:13 GMT


 Agree with feike, it's better to add interface in java class Surface
to control if  orientation is allowed. I believe many use case need
such API especially for Push Surface.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. (WTI) Google Maps 4.7.0 is ready for download

Friends,

Barusan cek pake Market Enabler, udah ada update Google Maps 4.7.0.
Silahkan diupdate :)

Best Regards,

David Haryanto
Japri/Gtalk: david.harya...@gmail.com
YM          : d4vid_ehue

*Cameron Sino & Yoobao - High Quality Battery for your gadgets, Please
contact me for details

-- 
===============
"

2. Retrieve language settings

Hi at all,
for my application I need to know the application setting language at
runtime for select a correct URL to do a correct query over internet.

There is a method for knows what language are currently my application
configured?

Thanks a lot.

--

3. Porting android to freescale i.mx 31L

4. Android ARM Direct SD Card I/O

5. Rapidly load data on Re-launch of an Activity

6. inject smart di htc her

7. this is the way to success