I have an app that downloads and sends files via ftp. When the app starts it receives a text file and would like to send the file when the application exits. I looked at how to do something when the application terminates and I found the onStop and onDestroy methods, but I do not know if I'm doing it right.
public void onStop(Bundle savedInstanceState)
{
metodo
}
would you call the onStop method and inside it perform the send activity to the FTP server for example?
I call the download activity inside the onCreate method and it works fine