How to put the alert dialog in the topmost part of the view
<p>I am making an alert Dialog and want to show it at the topmost part of the screen(its height should start from  the topmost part).How can i do that?This is the code:</p>

<pre><code>AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);
m_rb10Minutes = new RadioButton(this);
            m_rb10Minutes.setText("10 minutes");
            m_rb20Minutes = new RadioButton(this);
            m_rb20Minutes.setText("20 minutes");
            m_rb30Minutes = new RadioButton(this);
            m_rb30Minutes.setText("30 minutes");
LinearLayout linearLayout = new LinearLayout(this);
            linearLayout.setBackgroundColor(getResources().getColor(R.color.black));
            linearLayout.setLayoutParams( new  LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
                    LinearLayout.LayoutParams.MATCH_PARENT));
            linearLayout.setOrientation(1);  

            linearLayout.addView(m_rb10Minutes);
            linearLayout.addView(m_rb20Minutes);
            linearLayout.addView(m_rb30Minutes);
            alertTimer = alertDialog.create();
            alertTimer.setView(linearLayout);

            alertTimer.requestWindowFeature((int) Window.FEATURE_NO_TITLE);
            WindowManager.LayoutParams WMLP = alertTimer.getWindow().getAttributes();

            WMLP.x = 0;   //x position
            WMLP.y = 0;   //y position

            alertTimer.getWindow().setAttributes(WMLP);

            alertTimer.show();
</code></pre>
