How to get screen dimensions in pixels in andorid devices?
Answer / Antul Awashthi
In Android, you can get screen dimensions by using DisplayMetrics. Here's a simple example: `DisplayMetrics metrics = new DisplayMetrics(); getApplicationContext().getResources().getDisplayMetrics(metrics); int width = metrics.widthPixels; int height = metrics.heightPixels;`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is up with all these different versions of android, like 'donut,' 'cupcake' and 'froyo'?
What are the advantages of Android?
1 Answers TryTechnicals Pvt Ltd,
Explain resource in android?
How do you sync android with android?
List few items, which you think may be important in every android project?
what are the other notifications in android?
How do you find any view element into your program?
What is the difference between file, class, and activity in android?
What is main/res/ directory?
What is dagger in android?
By default ui components made in the ui editor should have text defined in file?
what is a handler thread?