If you want to get screen width and height of device in java file you can use DisplayMetrics class . This is a very simple way to get screen size. By using this code you can get size in pixels.
Read More »If you want to get screen width and height of device in java file you can use DisplayMetrics class . This is a very simple way to get screen size. By using this code you can get size in pixels.
Read More »