Skip to content Skip to sidebar Skip to footer

Input From User Using For Loop And Prompt Dialogue Box Shows Different Behaviour

i used the code below to get user input in android app. it runs fine but what i found after several attempts is that. the method below is called from a for loop to get different va

Solution 1:

Its becasue the dialogue boxes overlaps each other with every iteration. in reality the x is coming first but overlapped by the y dialogue box. an as async behaviour try to find other way around.

Solution 2:

You can call this method from your OnClick methods of positive or negative button i.e when the user presses ok or cancel button, then check your condition to show another dialog or not and call the function which is generating the dialog.

Post a Comment for "Input From User Using For Loop And Prompt Dialogue Box Shows Different Behaviour"