Get the size of the screen, called from an Activity:


MrSnowflake wrote:Get the size of the screen:

Woops that was a direct copy-paste from my code. I'll edit first post.plusminus wrote:MrSnowflake wrote:Get the size of the screen:
Could you specify what [font=Courier New]mParent[/font] (probably the Activity?)
I usually do it with the WindowManager-Service.


Timaphei wrote:Hi guys,
I used all above suggestions of how to determine the size of the screen.
This is what I get:
on Motorola Droid: 569x320 (actual size is 854x480)
on Nexus One: 533x320 (actual size is 800x480)
What is wrong?

Return to Code Snippets for Android
Users browsing this forum: No registered users and 3 guests