How to access data inside Dialog Builder's inner class?
<p>This is more of a Java question, i believe. I would like to access myBundle from within the OnClickListener. Currently, i am getting this compiler error - Cannot refer to a non-final variable dataSend inside an inner class defined in a different method. Is there any way to achieve what i want to do? Thanks. Relevant piece of code....</p>

<pre><code>protected Dialog onCreateDialog(int id, Bundle myBundle) {
    switch (id) {
        case DIALOG_DELETE:
            AlertDialog.Builder builder = new AlertDialog.Builder(this);
            builder.setPositiveButton("Oh My God", new DialogInterface.OnClickListener() {

                @Override
                public void onClick(DialogInterface dialog, int which) {
                    // TODO Auto-generated method stub
                    executeDelete(myBundle);
                }
            });
    }
}
</code></pre>
