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. Lesjaw di Jekarda

Mumpung ada mahasuhu Lesjaw lagi di jekarda. 
Hari jumat mau ketemuan nih...
Kalo bisa sih jangan di springhill
Karena cuma sampe jam 10 malem doang. 

Ada usulan dimana?
Syarat (mutlak):
- ada wifi
- ada beer

hope for a better future

"Indonesian Android Community [id-android]"

PING'S mobile
Email:  Ph. (021) 96087100
Yopie Ratjoen
Email:  Ph. 08977726681
Gila original
Email:  Ph. (031) 91555898

Aturan Jual/Kloteran ID-Android

2. Acitivity managing


I have been in problem of the Activity life-cycle. All though i read
lots of docs on it put on getting clear picture on it.

I have Activity A. In that activity I have menu options. If we click
any option it opens the respective activity like
if i click on 2nd button it opens Activity B
Now again Activity B has same options into it. When user clicks on 1st
button then i need to go back to activity A.
So using this.
Intent intent = new Intent().setClass(context, Articles.class);
So always it starts new instance of activity and fetch data from DB. I
want something like
Activity A can be resumed back as it was.


3. How to access voice input settings

4. How Tango works?

5. MyPhoneExplorer (ngetik sms di pc)

6. How to open a file browser to upload a file

7. OOT: Iseng nanya soal angry bird di android