I need to get screen resolution, width and height, how to do it?
Decision:
Display d = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); width = d.getWidth(); height = d.getHeight();
Display d=Display.getInstance(); int width = d.getDisplayWidth(); int height = d.getDisplayHeight();
According to http://forums.java.net/jive/message.jspa?messageID=479230
or maybe
Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); int width = display.getWidth();
http://www.coderanch.com/t/435390/Android/Mobile/screen-size-at-run-time
, , . , . ( ..), , , , .. , , , , , .
- , , onSizeChanged().
Source: https://habr.com/ru/post/1763130/More articles:IPad Flash Life Expectancy? - ipadQuestion mark in url (Apache) - url-rewritingJQuery method to get one node - instead of find (); - jqueryStyle Q: if the lock function or around? - functionHow to prevent "DROP BOBBY TABLES" when a user enters a password with special characters? - sqlException in form authentication using Glassfish v3 - javaSql For Xml Path get node count - sqlThird-party service for launching a web service - windowshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1763134/tomcat-needs-to-be-restarted-2-times-when-uploading-new-war-file&usg=ALkJrhjPeFXP4VuuNbhyrx8LlJxUXh0_qgMicrosoft PHP SQL Driver vs PHP SQL Driver - phpAll Articles