is GLSurfaceView life-cycle the same as Activity that own it ?

by LemonDev » Thu, 03 Dec 2009 10:17:38 GMT

Sponsored Links
 what puzzle me so much is that i can't destroy a GLSurfaceView while i
don't want to exit the activity.

the fact is when i destroy a GLSurfaceView which had show in the screen
(that means it has binded to the activity's SurfaceHolder), the
activity exits without any prompting. Perhaps ,the Context which
provided in the Construction of GLSurfaceView joins the two things

so my conclusion is that a GLSurfaceView can only be destroyed when
exit the activity.

is there anyway to destroy a GLSurfaceView without exit activity?
is there someone can provide a clue?


Other Threads

1. Renderscript, YouTube example

I noticed that the Renderscript examples (
resources/samples/Renderscript/index.html) just showed very basic
usage of Renderscript.

Would it be possible to have the source code for the YouTube
Renderscript screen where the videos are displayed? Or at least a
small article explaining how it was built and some code samples?

A lot of companies are building video-content apps that lists the
videos like YouTube so I believe an article surrounding this would
benefit a lot of developers. Not everybody needs to use Renderscript
but it definitively makes the app stand out from the crowd.


2. reflection

Hi All,

I am trying reflection in android.

It works fine for classes, say A and B, under same project(same
process in other words).

It does not work between two different processes.
i.e. I have
project A, package name com.ref.classA
project B, package name com.ref.classB

Can I call from project B, Class.forName("com.ref.classA");

I get exception class not found when I do this.
Please note I have not imported package of calssA in classB.

Am I missing something? or it is just not possible to do it between
different processes.

Any input would be of great help.



3. ListView with custom items

4. Activity touch event leading to EPIPE in ginger bread !!

5. Google Maps Source Code

6. how to show a progressbar in a canvas

7. Backup and Restore service not working