• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Stop Surface View being destroyed

cheops2006

Lurker
Feb 18, 2010
1
0
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
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones