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
together.

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. Dose Android sdk 1.5 allow to create our own screen when a call is in or out

Does this mean I need to change the source code to get the new screen?
Is there any  reference materials?





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

2. Download manager

I want to access Download manager in my application, and set
   <uses-permission
android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
   <uses-permission
android:name="android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED"/>
   <uses-permission
android:name="android.permission.ACCESS_CACHE_FILESYSTEM"/>
   <uses-permission
android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS"/>

 in manifest.xml

  However, I still get /AndroidRuntime(14300): Caused by:
java.lang.SecurityException: Permission Denial: reading
com.android.providers.downloads.DownloadProvider uri
content://downloads/download from pid=14300, uid=10057 requires
android.permission.ACCESS_DOWNLOAD_MANAGER
E/AndroidRuntime(14300):        at android.os.Parcel.readException
(Parcel.java:1234)
E/AndroidRuntime(14300):        at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:145)
E/AndroidRuntime(14300):        at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:111)
E/AndroidRuntime(14300):        at
android.content.ContentProviderProxy.bulkQuery
(ContentProviderNative.java:279)
E/AndroidRuntime(14300):        at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
298)
E/AndroidRuntime(14300):        at
android.content.ContentResolver.query(ContentResolver.java:149)
E/AndroidRuntime(14300):        at
android.app.Activity.managedQuery(Activity.java:1499)

is there anything else I should do to access Download Manager?
--~--~---------~--~----~------------~-------~--~----~

3. How does 2 different package share the same aidl interface?

4. Android Hook

5. Can you record a video of the screen?

6. Android Screen Shot

7. Browser versus App to present Web Data