Can i get resolution of android phone..?
if yes then how..?
it will really helpful for me..
Thank you..
Can i get resolution of android phone..? if yes then how..? it will really
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want the display dimensions in pixels you can use getSize:
This method was introduced in Android API 13, so if you want to get display metrics for previous APIs use:
If you’re not in an Activity, you can get the default Display via
WINDOW_SERVICE. Also be sure to set your minSdkVersion to at least 4 in AndroidManifest.xml to enable calls to display.getWidth().Edit: PhoneGap
Use the following to figure out the display size in pixels