use a high enough api version, and you will open with correct size/height

-----
    public int getStatusMetric() {
        int resId = getResources().getIdentifier("status_bar_height",
                "dimen",
                "android");
    if (resId > 0) {
int result = getResources().getDimensionPixelSize(resId);
//Log.d( "org.MyNative", "status bar result " + result );
                                        return result;
}
                        return 0;

    }


On Wed, Sep 24, 2014 at 4:11 AM, Arun Kumar K <arunkuma...@npcompete.net>
wrote:

> Hello Guys,
>
> I want to get real device display height and width. Can anyone help me..
>
> And one more thing,
>
> How to set Margintop for Notification bar ...?
>
> --
> *Regards*
> *Arun*
>
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to