Stop Surface View being destroyed


Last Updated:

  1. cheops2006

    cheops2006 New Member This Topic's Starter

    Joined:
    Feb 18, 2010
    Messages:
    1
    Likes Received:
    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
     

    Advertisement

Share This Page

Loading...