I had an application, send its version to the server and, if it does not match the current version indicated on the server, launches an intention that brings the user to the market, it can either let them cancel and continue, or prevent them from using the application until until it is updated. I think this stopped them by creating a full-screen web view on the market URL, and they cannot hide it for access to the application.
source share