2
I don’t know if minimizing would be the right word, I don’t think so... Please correct me.
I have an application and I want to stop someone from minimizing it using the Home button, if someone presses Home, the application will be completed completely, including all the Activities that have been opened, and I also need you to execute a method when this application is finished in these terms...
How to do?
Edit: It is an application that user can select files to protect against access from other applications, these protected files can be accessed only by my application (it asks login), while my application is running the files are unprotected, because it needs to 'unprotect' them in order to be able to read, many laymen click the Home button and think that the application has been finalized, I want to avoid this, I want to avoid that the files remain unprotected because the application is still running, and I want to prevent another person from taking the user’s phone and end up gaining access to the application and files because it is simply open
If you really need to do this, allow me to suggest that you should rethink the design of your application, because this goes against the way of programming for android.
– ramaral
yes i need to do this, it is an application that protects some files, these protected files can be accessed only by the application, and the application asks LOGIN, yes I need the application to be killed in this case
– felipe.rce
Most lay people don’t close the application, simply click the Home button, my application needs maximum safety. I have just received a negative vote because of this
– felipe.rce
@ramaral edited the post mentioning why this. I’ve seen my competitors doing the same, I just wanted to know how, if there is another way is also good
– felipe.rce
The correct way to do this is to control the call Activity Lifecycle, in times of Stopping and Restarting an Activity
– ramaral