Android, Limit same button pressed multiple times
<p>I have buttons in my app that do various things. A problem i am running into is that a button can be pressed multiple times before what that button does is enabled/processed/calculated. </p>

<p>Example</p>

<p>when i press a button { an integer should have 1 added to it unless it is at it maximum value. </p>

<p>when i press a button { a dialog should show (only once).</p>

<p>in either case if i press slowly i have no problems, but if i press rapidly the integer will pass its maximum or multiple dialogs will show. </p>

<p>Can someone point me in the right direction to deal with this.</p>
