Stop Surface View being destroyed

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


Sponsored Links
 Hi,

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

Thanks

Adrian

--



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

Thanks
Vikram

-- 

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.

http://www.mobilecrunch.com/2010/07/07/mobspot-turns-to-your-facebook-friends-for-app-recommendations/

MobSpot is only for iPhone apps (for now). If you guys want to get in on
this for Android head over to http://apps.facebook.com/zappmarket. 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)
http://apps.facebook.com/zappmarket/
http://twitter.com/zappandroid

-- 

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