launching the application,call the surfaceview drawrect function.