is it possible to bring up a dialog box in android after every certain value (provided by the user). In my app, the user can go up and go down value by 1 by pressing a button and what I want to do is allow the user to set a number e.g. 45 and after every 45 numbers the user goes up or down by, I want a dialog box to show up.
For example, if the user want to see a dialog box after every 100 value then there would type in 100 in a textbox and start pressing the up and down button and when they value reaches the current value + 100 / - 100 then a dialog box will appear. For instance, after if the user has set the dialog box to appear after every 100 value then the dialog box will appear on numbers like 100, 200, 300 etc.