I have a location listener which pops up an alert dialog on proximity. However, it will keep popping up the same alert dialog again and again as I walk around. Is there a way to disable the location listener when an alert dialog pops up and re-enable the location listener when the user submits or dismisses the alert dialog?
Share
After you show the alertdialog
call
Then after the user clicks on some button of alert dialog register for location listener again like this..