Android move object along a path

Issue I have created a path and circle and displayed both of them on screen as follows: public void onDraw(Canvas canvas){ Path sPath = new Path(); sPath.moveTo(100, 100); sPath.lineTo(300, 100); sPath.lineTo(300, 300); sPath.lineTo(100,300); sPath.lineTo(100,100); sPath.close(); Paint ballPaint = new Paint();

Continue reading