android : what's the procedure to write functions for alertdialog item?
<p>I'm going to write some function in AlertDialog's item : - Code is : - </p>

<pre><code>final CharSequence[] items = {"Now", "Later", "Cancel"};

        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setTitle("When you need to Take BackUp?");
        builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int item) 
            {
        //                  Toast.makeText(getApplicationContext(),items[item],Toast.LENGTH_SHORT).show();
                items[0].notify();
                items[1].charAt(2);
            }
        });
        builder.show();
</code></pre>

<p>This item will enable some function, how can i declare and define that.</p>
