How can i close my application programmatically?
I used
finish();
Or
android.os.Process.killProcess(android.os.Process.myPid());
Or
System.exit(0);
Or
moveTaskToBack(true);
but it closed the current running activity, but i need to close the whole application??
I need to close app to retrieve some memory and then restart application again.
Or
does there is a way to clear all memory of the application?