Open pankaj2020 opened 8 years ago
Hello,
Try this to either close or hide window when activity goes into backgound/destroy In onDestroy() startService(StandOutWindow.getHideIntent(this,_WINDOW_TO_HIDE.class,WINDOW_ID); //to hide
startService(StandOutWindow.getCloseIntent(this,_WINDOW_TO_HIDE.class,WINDOW_ID); //to close
Ensure the WINDOW_ID is the same ID you used to start the StandOutWindow window.
Hope this help.
How to hide window on HOME button click or app goes in background? As I want to use standout window in app only. When app goes in background/destroy, window should hide.
Kindly suggest solution.