Stop Surface View being destroyed

by Adrian Hirst » Fri, 19 Feb 2010 02:19:05 GMT

Sponsored Links

I have created a game that uses SurfaceView and need input for player
to enter there name so I created a View xml that allows the player to
enter there name with the virtual keyboard.

The problem I have is when I call setContentView(nameView) it destroys
the surfaceview and everything associated with it is there away to
preserve the SurfaceView as it gets rid of all the gfx that have been




Stop Surface View being destroyed

by Steeler » Fri, 19 Feb 2010 14:13:10 GMT

 One thing that comes to mind is using an AlertDialog for the name
prompt instead of a View.


Sponsored Links

Other Threads

1. application storage location?

All of the applications that I have installed from Android Market have been 
installed in G1 memory and not on my SD card.  Is there something that I must 
do in the application to get the install to be stored on the SD card or is it 
a user option that I haven't found yet?


2. Serial Port Communication

Hi All,
Can I connect to serial port from andriod emulator?

Best Regards


3. AppWidgets: Reusing RemoteViews instance leaks memory?

4. How to change App Widget size on home screen?

5. AppWidgetProviderInfo: mutable?

6. work with widget and screen oriantation

7. Using TabHost with Dynamically built (pre-existing Views)