if your background is black ,add one statement paint.setColor(Color.RED);
and also you had pass RectF rect = new RectF(100, 100, 100, 100);
all points are same , try RectF rect = new RectF(100, 100, 200, 200);
OR for line canvas.drawLine(10, 10, 10, 10 + 15, paint);