android:Strange behavior on dialogbox
<p>i have Strange problem on dialog box.</p>

<p>I increase the value of  X  and sending it to dialogbox</p>

<p>on the dialogbox  -  I keep seeing the same value.</p>

<pre><code>public String TMP;
int X=1;

.
.
.

 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
    switch(item.getItemId()) {
        case MENU_ABOUT:
            X++;
            TMP = String.valueOf(X);
            showDialog(ABOUT);
            break;
        }
        return super.onOptionsItemSelected(item);
  }

.
.
.

 protected Dialog onCreateDialog(int id, Bundle args)
    {
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        if (id==0) 
        {
             builder.setTitle(TMP);
             builder.setIcon(R.drawable.ic_launcher);
             builder.setCancelable(false);
             builder.setPositiveButton("Back", new DialogInterface.OnClickListener() {
             public void onClick(DialogInterface dialog, int id) {
                      }
                  });
              AlertDialog alert = builder.create();
              return(alert);
        }
        AlertDialog alert = builder.create();
        return(alert);
    }
</code></pre>

<p><strong>and I keep seeing  2 all wase</strong></p>
