In my android app I use AsynTask with Progress Dialog (Please wait login in ...) for logining user with my web page (web service function inside AsynTask)
I want to dismiss Progress Dialog and cancel AsynTask when user click on Back button on device.
I can't find that kind of example, for interrupting AsynTask. I read abouth cancel(boolean) but I don't know how to call from UI.
Can anyone give me idea.
Thanks