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. AsyncTask on a button

Hello,

My application parse an xml file dans display data in a list view.
On start of application i load data using an AsyncTask. A Progress
Dialog is display during the load.
This part works fine.

A button in the application make it possible to reload the data.
I would like to run the AsyncTask but the sytem say i can't alter
view  in other thread. I have also read an AsyncTask can't be run
another time : 
http://android-developers.blogspot.com/2009/05/painless-threading.html
If i use Activity.runOnUiThread(Runnable) i have the message
"application not responding".

So i would like to know what is the best way to do this and not to
have the "application not responding" message.

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

2. MediaPlayer.create always returning null (SQLite URI Problem Maybe?)

The files are stored in a JSON Database in http format, but to
eliminate loading times since the application they will be used in
will also include video and time is a factor, prior to launching a
"game" I download the necessary files from the JSON Database to a
SQLite database on the phone.

I am able to stream the file directly from its full http path using
AsyncPlayer but there is a loading time I would like to avoid, and
AsyncPlayer does not work with video. I have not tested whether or not
the file would play from the sd card, but I am fairly certain that is
not the issue since I am able to pull the file from the SQLite
database and play it locally on my computer with no problems.

Sorry if that was slightly confusing. I'm not the best at explaining
things.





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

3. MediaPlayer.create always returning null (SQLite URI Problem Maybe?)

4. Thread CPU Usage Monitoring

5. Webview Upload !!

6. MediaPlayer.create always returning null (SQLite URI Problem Maybe?)

7. Hello Views Tutorial