How to prevent Activity from Closing when user press Back button

vndnguyen

Member
Hi all,

By default, when user press Back button, the Activity will be closed (Finished) and the event Activity_Pause raise with UserClosed = True.

The question is, how to prevent Activity from Closing when user press Back button. In VB6 we can do that with Cancel = True in Form_Unload event.

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