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. new NTP client tools on the Android Market

For those of you dealing with time data on the Android - or just want
to see an NTP client work, check out the application I just published.

It's free of course, and it's called "Navy Clock"

It displays local time of the phone, the UTC time of the phone, and
the time read from the US Naval Observatory in Washington DC.

I'll add features as I go.

Cheers,

Richard

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

2. Animation on a view doesn't 'stick' in reality

> Any way to do this without setting up an animation completion handler

Yes and no. No because you still need to hide the view yourself. Yes
because you can just do this:

myView.startAnimation(myAnimation);
myView.setVisibility(View.INVISIBLE); // or GONE

Android will hide the View and run the animation but still draw the
View as long as the animation is running.

-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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

3. ListView row not receiving highlight with ImageButton in row

4. Capture 3 Mega picture on Android master

5. OOM errors during inflation

6. Get list from Website ( PHP , MySQL , HTTP request , XML )

7. Install Android on a LapTop