I am working android game development and I am new in it.
I want to develop a game which screen resolution free. It will be enough for me if i get to know that how to catch screen resolution of an android device using libgdx library.
After some googling i read the following code on different sites, but it is not for libgdx.
DisplayMetrics displaymetrics = new DisplayMetrics();
height = displaymetrics.heightPixels;
width = displaymetrics.widthPixels;
Though there are some answers here on my question, but this is what exactly worked for me: