Created
October 20, 2014 06:02
-
-
Save housemeow/9a53384413d0639b2639 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Point get_display_info() { | |
int screenWidth; | |
int screenHeight; | |
DisplayMetrics dm = new DisplayMetrics(); | |
dm = getResources().getDisplayMetrics(); | |
screenWidth = dm.widthPixels; | |
screenHeight = dm.heightPixels; | |
return new Point(screenWidth, screenHeight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment