I have class Maingamepannel extending surfaceview for my games first level everything works fine. Now i Want to redraw my surfaceview for my next level so that I can reinitialize my bitmap objects at their initial position and start the game again with bit diffrent conditions which i have handeled in switch case.
To achieve this after finishing my annimations in first loop I have called my activity showing view again like this---
Intent backIntent = new Intent(getContext(),mygame.pkg.StartGame.class);
sg.level++;
backIntent.putExtra("levelkey",""+sg.level);
getContext().startActivity(backIntent);
By doing this I am able to redraw my bitmaps at initial position and starting annimations again, But the problem is
this is drawing a another surface while my requirement is to use the same surface
or delete the first surface and then drawing a another one.
please help me.
Thanks