Android Alert Box Wont Stay Open -
as title says alert box in app wont stay open. box nested within loop checked when button clicked. when loop goes alert box flashes on screen before disappearing straight away. is there sort of timer can put on alert box keep open or have implemented box incorrectly? button w/ loop , nested alert box button button= (button) findviewbyid(r.id.cookbutton); button.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { finish(); //deducting 1 ingredient final cursor ingredients = adapter.getrecipesingredients(recipecode); final cursor missing = adapter.missingingredients(recipecode); if(missing.getcount() == 0) { toast.maketext(getapplicationcontext(), "haveeverything", toast.length_short).show(); ingredients.movetofirst(); string ingredient = ingredients.getstring(ingredients.getcolumnindex("i...