You can try this:
                DisplayMetrics dm = new DisplayMetrics();
                WindowManager wm = 
(WindowManager)this.getContext().getSystemService
(Context.WINDOW_SERVICE);
                wm.getDefaultDisplay().getMetrics(dm);

                dm.widthPixels,    dm.heightPixels;


On Jan 9, 6:25 pm, frantz lohier <[email protected]> wrote:
> Great, thanks Mark (by the way, your books are great).
>
> One quick more: how do I know the min/max resolution of a screen offered by
> a given device ?
>
> Thanks,
>
> On Sat, Jan 9, 2010 at 10:04 AM, Mark Murphy <[email protected]>wrote:
>
>
>
> > frantz lohier wrote:
> > > Does anybody know a way for an Activity to retrieve the name of the
> > > phone (maker/model) ?
>
> > Look at android.os.Build for those sorts of details.
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, $35/Year
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to