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. problem with use " /system/bin/rild " dynamically

Please make sure that these devices are able to understand AT commands.


Hamilton Vera

Hamilton Vera
int Administrator (char Network[],char ComputationalSystems[])


2. How to start pppd in froyo?


Google removed PPPD in froyo. So how to start pppd?
I know one way is pppd + chat, is this regular way?

When I ported reference-ril.c,  i can see all the AT commands are executed.
And the last one is "ATD*99***1" and return "Connect 384000"
Here is the logcat:
D/AT      ( 2487): AT> ATD*99***1#
D/AT      ( 2487): AT< CONNECT 384000
D/RILJ    ( 2166): [0063]< SETUP_DATA_CALL {1, /dev/ppp0}
D/GSM     ( 2166): [GsmDataConnection-1] DcActivatingState 
D/GSM     ( 2166): [GsmDataConnection-1] DataConnection setup result='SUCCESS' 
on cid=1
D/GSM     ( 2166): [GsmDataConnection-1] DcInactiveState: 
setEnterNoticationParams cp,cause
D/GSM     ( 2166): [GsmDataConnection-1] DcActiveState: enter 
D/GSM     ( 2166): [GsmDataConnection-1] notifyConnection at 1105758 cause=No 
D/GSM     ( 2166): GSMDataConnTrack handleMessage { what=1 when=1105759 arg1=1 
obj=android.os.AsyncResult@43fb52d0 }
D/GSM     ( 2166): [GsmDataConnectionTracker] setState: CONNECTED
D/GSM     ( 2166): [DataConnection] Start poll NetStat

I also can see the GPRS Logo from the UI, but I can not go to internet.

Here is the logcat for pppd:

D/ConnectivityService( 2057): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/Tethering( 2057): Tethering got CONNECTIVITY_ACTION
D/Tethering( 2057): MasterInitialState.processMessage what=3
E/HierarchicalStateMachine( 2057): TetherMaster - unhandledMessage: msg.what=3
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/dalvikvm( 2237): GC_EXPLICIT freed 325 objects / 20080 bytes in 42ms
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [LCP EchoReq id=0x4 magic=0x7a9b9391]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
D/pppd    ( 2609): sent [IPCP ConfReq id=0x3e <addr>]
W/pppd    ( 2609): IPCP: timeout sending Config-Requests
D/pppd    ( 2609): sent [LCP TermReq id=0x2 "No network protocols running"]
D/pppd    ( 2609): sent [LCP TermReq id=0x3 "No network protocols running"]
I/pppd    ( 2609): Connection terminated.
E/Tethering( 2057): attempting to remove unknown iface (ppp0), ignoring
I/pppd    ( 2609): Serial link disconnected.
I/pppd    ( 2609): Modem hangup





3. Questions about Two Way Sync Using SyncAdapter and SyncService in android

4. OOT : Professor Creates a 鈥楲iving鈥?Google Logo

5. Fwd: newbie ijin gabung

6. Modul II Session Training IM2

7. HELP: Problem DHD & HTC Sync