How to open a new screen at the time of accepting the alert?
<p>My first screen has the alert message when I accept the alert I have to show the next screen and pass some values to that screen to show that values.I am very new to android.</p>

<pre><code>new AlertDialog.Builder(this)
    .setTitle("File accept!")
    .setMessage("Do you Want to open "+name+" file !!")
    .setPositiveButton("Open", new DialogInterface.OnClickListener()
    {
        public void onClick(DialogInterface dlg,int acc)
        {
            //here i need to open a new screen
        }
    })
    .setNegativeButton("Close", new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dlg, int sumthin) {

    // do nothing – it will close on its own
    }
    })    
    .show();
    }   
</code></pre>

<p>--Thanks in advance</p>
