• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps clarification needed in detecting ROTATION change (not configuration)

arvind_smit

Lurker
Hello Ppl,


I have used OnConfigurationChanged method to track down the orientation change and manage the UI level items accordingly. Now with the froyo update supporting the 90 & 270 degree rotation, i have a small problem.

In my application, i have an imageview previewing the local video. When the orientation of the device changes from PORTRAIT to LANDSCAPE (landscape being 270 degree and 90 degree) and vice versa, there is no problem at all.

But when i move the phone quickly from 90 degree to 270 degree (i.e from one landscape to another landscape) the onConfigurationChanged method is not triggered. And in DROID, the local video preview goes completely blank. Im not sure whats the problem. If the orientation is slowly from one landscape (90degree) to another landscape(270), the problem doesn't occur as the orientation changed is detected twice (one for portrait and another one for landscape)

May be resizing the surface of the imageview of the local video might solve the problem. But how do i know when to update it. The problem does not happen with Samsung galaxy.

Kindly help me with some suggestions!!
 
Back
Top Bottom