Code example for Handler: Scheduling a delayed task

Methods: postDelayedremoveCallbacks

0
            } finally { 
                if (c != null) holder.unlockCanvasAndPost(c);
            } 
 
            // Reschedule the next redraw 
            mHandler.removeCallbacks(mDrawWallpaper);
            if (mVisible) {
                mHandler.postDelayed(mDrawWallpaper, 1000 / 25);
            } 
        } 
 
        private void drawCar(Canvas c) {
    		 
        	if(takingACorner){
    			c.drawBitmap(BitmapFactory.decodeResource(getResources(), slidePic), 20, 120, null);
    		}else{ 
    			 
	        	if(mDragEventInProgress){
//	        		if(mDragEventStartX > 150){ 
//	        			c.drawBitmap(carRightBitmap, 20, 0, null);