Android Question How to handle ProgressDialogShow onDismiss() event?

code4fun

Member
Licensed User
Longtime User
Hi,

I display a cancelable ProgressDialogShow window in my app while other stuff (outside of the block that the ProgressDialogShow was called) are being processed. When the user presses the BACK key, I want to to:
  1. Hide the Progress Dialog (happens automatically)
  2. Execute some logic (does not happen since the first BACK key press just closes the dialog, not running my code)
Is there a way to access the onDismiss() event of the ProgressDialogShow so i can run my logic there?

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…