Hi... u ll get the device width and height by using Display..

check this one..

Display display = getWindowManager().getDefaultDisplay();
int targetWidth  = display.getWidth();
int targetHeight = display.getHeight();


Thanks and Regards,
S.Seshu

On Feb 15, 12:55 pm, chen ji <chenjihz...@gmail.com> wrote:
> Hi All,
>
> If I use DisplayMetrics to get galaxy nexus (ICS )'s screen's width &
> Height, I found a very strange thing. It is 1184x720 if I set miniSDK
> = 8 and it is 1196*720 if I set miniSDK =7. And actually I think it
> should be 1960*720.
> Anyone can give some advices?
>
> Thanks,
>
> Ji

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to