Wrap the boolean result in another type, e.g. AtomicBoolean, make it final so it can be accessed in the inner class and then use the result, e.g.:
final AtomicBoolean allowSettingNewPassword = new AtomicBoolean(false); ... in the onClick: allowSettingNewPassword.set(oldpass.equals(checkoldpass)); ... outside onClick: if (allowSettingNewPassword.get()) Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

