I want to "minimize" the application, leaving it in background doing exactly the same that when the home button is pressed when the user clicks a button (but don't finish it) How can I do that?
Pause Your Activity You should usually use the onPause() callback to: Stop animations or other ongoing actions that could consume CPU. Commit unsaved changes, but only if users expect such changes to be permanently saved when they leave (such as a draft email).
You can minimize the apps or actually have it as a popup: Tap your home multi-screen window. Touch and hold the app you want to minimize. You can open "Option" menu on the top of the page and drag and drop, minimize, go full screen, or close the app here.
You can use the moveTaskToBack(boolean)
method of Activity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With