How can I get app's resolution in android by command line or another app? -


In the form of a title when a game is playing in full screen , how do I resolve it Can i do Can I type commands in terminal emulator to get it, or any other app?

If I understand your problem correctly, you should try this code. It gives the screen dimension in pixels

  DisplayMetrics metric = new display metric (); . GetWindowManager () getDefaultDisplay () getMetrics (matrix). Metrics.heightPixels; // Here is the height of the screen metric. Width pixels; // Here is the width of the screen  

Note that the width and height values ​​are changed according to the screen orientation (w> l in the landscape and w> h in the landscape orientation < / P>


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -