boolean buttonflag=false;
Editbutton.setOnClickListener( new OnClickListener()
{
@Override
public void onClick( View v )
{
buttonflag=true;
}
}
error im getting is "Cannot refer to a non-final variable buttonflag inside an inner class defined in a different method" what i want to do is when i press the Editbutton i want the buttonflag to be true..Can any one explain the reason and a fix for this problem?