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. how can I know the default directory for file output?

How can I get the directory of the file? If I need to read it back
from media player?


FileOutputStream fos=null;
OutputStream out=null;
try
{
                
fos=mActivity.openFileOutput(fName,mActivity.MODE_WORLD_WRITEABLE );
                out =(OutputStream)(fos);
                out.write(s.getBytes());
                out.close();
                fos.close();
                out=null;
                fos=null;
        }
catch(Exception e)
        {
                //      AlertDialog.show(, title, iconId, message, button1Text,
button1Listener, button2Text, button2Listener, cancelable,
cancelListener)
        }

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

2. Is Runnable no longer supported by android.view.Menu?

I see it in the description of of some menu methods as if a Runnable
is going to be called if one exists.

However I don't see an "add" method adding a runnable to the menu item.

Any thoughts

Thanks
Satya

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

3. New to Android Install procedures

4. i have a problem with hello android

5. Android Desktop Backgrounds

6. Coolest App Idea Stolen from an IPhone

7. Android SDK and Eclipse Ganymede