The problem goes like this:
I have implemented a surface view that gets rendered every 50 ms using the manual draw(canvas) method.
it works fine when i do instantiation and setContentView() upon activity's OnCreate event as such:
// Activity onCreate Event...
xxx = new myView();
setContentView(xxx);
However, when i have an XML layout, with a few buttons on it, and I change the Activity's OnCreate event to setContentView() to an XML layout first :
setContentView(R.layout.main);
,and then in one of my buttons' onClick, i do setContentView() to my SurfaceView
using the exact code previously ...
xxx = new myView();
setContentView(xxx);
but i get a blank screen upon changing the view from XML layout view to my own Surface View, in which i don't see any canvas drawing completely.....
WHY????

