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. How to Submit patches?

Hi i want to send few patches for issues reported,
what is the procedure to send patches for any issues ?
For example i want to provide fix for issue: 9584



2. Mobspot Facebook App

It looks like these guys at MobSpot are thinking along the same lines as me
for ZappMarket, using facebook to discover and promote applications.

MobSpot is only for iPhone apps (for now). If you guys want to get in on
this for Android head over to MobSpot
has 35 apps, ZappMarket has 12. Do you still want to let all the iPhone guys
beat us poor Android developers?

Shane Isbell (Founder of ZappMarket)


3. Drawing an outlined RoundRect

4. Figuring out the test cases for Android-based Signal Meter

5. Power Consumption by Android Phone

6. Volunteer needed to develop an Alzheimer's app

7. Modifying camera settings