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. want to take the height and width of editText from String file

hi
i want to declare the constant value for the  height and width for
editText in android and to use in the xml file is it possible
plz suggest aa solution,
thanks in advance


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

2. "Menu" button disabled when I override onKeyDown

I am overriding onKeyDown in my activity, and calling
super.onKeyDown() on all values except for the "Call" button, which I
implement myself.

The other buttons seem to work, but the Menu fails to load when I hit
the Menu button.  What can I do to get around this?

Thanks,

James

        public boolean onKeyDown(int keyCode, KeyEvent event)
        {
                switch (keyCode)
                {
                        case 5:
                                //perform call function
                                break;
                        default:
                                super.onKeyDown(keyCode,event);
                }
                return true;
        }
--~--~---------~--~----~------------~-------~--~----~

3. Null pointer Exception while accessing Textfile

4. "Menu" button disabled when I override onKeyDown

5. Rules for using database.

6. broadcastIntent problems

7. How to specify the library classpath when deploying from Eclipse