Hi (again)
I accidentally clicked send while writing my reply so here comes the
proper one :-)
The following code will provide you with the size of the screen (in
pixels)

        WindowManager wm =
(WindowManager)getSystemService(Context.WINDOW_SERVICE);
        Display dsp = wm.getDefaultDisplay();
        int height = dsp.getHeight();
        int width = dsp.getWidth();

Hope this helps!

Kind regards,
Erik


On Apr 13, 12:05 am, Bob <bshumsk...@yahoo.com> wrote:
> Hi,
> I need to know how many pixels wide and tall the screen is.  I know
> that there are a bunch of different localization folders that I could
> make for different views but I just need to know, programmatically,
> how many pixels are on the screen so I can do some drawing.  How can I
> detect this?
>
> Thanks,
> Bob

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to