Orientation change and setRender

by qwesthead » Fri, 20 May 2011 15:38:29 GMT


Sponsored Links
 I've a region on an activity that uses GLSurfaceView. When the
Activity is resumed, I call the setRenderer and then the content of
the screen. They work fine. But, the problem arise when I change
orientation (configurationChange.) Upon orientation change, I need to
change the layout. After orientation change, surfaceChanged is getting
called. However, even when I call GLSurfaceview.requestrender,
Renderer.onDrawFrame is not getting called.
What are all the things I need to do when there is an orientation
change.

-- 



Other Threads

1. Mounted SD Card Access

Can an Activity still have read/write access to an SD card after it
has been mounted to USB storage (connecting USB and selecting Mount
from the resulting notification screen).  In other words, does
mounting the SD card lock out system access until USB is disconnected.

I need to create a live channel between an application and an external
USB device and I'm running out of options.

Thanks.
--~--~---------~--~----~------------~-------~--~----~

2. Reading sensor values directly without having to use/wait for onSensorChanged

I am sure they are just returning the most recently received values.

Note that the sensors can very well be different hardware parts, that
generate updates on different schedules.  For example the accelerometer and
compass are very different types of hardware, and it would be a mistake to
think that they are intrinsically tied together in their data reporting.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

3. using SKIA canvas in native code, SimpleJNI hack.

4. Inconsistency on the definition of the sign of X acceleration?

5. ProgressDialog with a second thread - Screen Orientation and "back button". How to restore progress dialog?

6. OOT: Paging bro Lesj

7. MTJ error