App I’m building is carrying out a task, ProgressDialog is on the screen circling ’round and ’round.
How can I provide the user the ability to break out of that Dialog at any given time, immediately disappear the Dialog and stop the task from being carried out mid run?
Try this ,if it is an AsynkTask: