I want to write a program that a ball move on screen, because of this, i read many tutorial and i cant understand this line:
mHolder = getHolder();
mHolder.addCallback(this);
what is "this
" parameter in addCallback
method? why i use this method?
i read about SurfaceView
and SurfaceHolder
and Canvas
but i cant good understand SurfaceHolder
.what does it do?
I know maybe my question was stupid but this is a question ! Please explain about this concept.