The following code can be used to get the width and height of the screen.
int width = this.getWidth(); int height = this.getHeight();
To draw a circle in the middle of the screen, you can call:
Canvas.drawCircle(width/2, height/2)
variant-45
source share