a line is drown over alertDialog.setButton in MainActivity.java
<p>I am doing alert dialog demo. It work fine but I found a line over "setButton" in MainActivity.java file. Hear is my code:</p>

<pre><code>@SuppressWarnings("deprecation")
public void onClick(View arg0) {
            // Creating alert Dialog with one Button

            AlertDialog alertDialog = new AlertDialog.Builder(
                    MainActivity.this).create();

            // Setting Dialog Title
            alertDialog.setTitle("Alert Dialog");

            // Setting Dialog Message
            alertDialog.setMessage("Welcome to AndroidHive.info");

            // Setting Icon to Dialog

            // I got line hear........ over setButtob .........
            alertDialog.setButton("OK",
                    new DialogInterface.OnClickListener() {

                        public void onClick(DialogInterface dialog,
                                int which) {
                            // Write your code here to execute after dialog
                            // closed
                            Toast.makeText(getApplicationContext(),
                                    "You clicked on OK", Toast.LENGTH_SHORT)
                                    .show();
                        }
                    });

            // Showing Alert Message
            alertDialog.show();![enter image description here][1]

        }
    });`
</code></pre>

<p>You cab see the image <a href="http://i.stack.imgur.com/ykdak.png" rel="nofollow">here</a> and get more idea of what I mean to say.</p>
