StandOut icon indicating copy to clipboard operation
StandOut copied to clipboard

Hide Standout window when click on HOME button.

Open pankaj2020 opened this issue 8 years ago • 1 comments

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.

pankaj2020 avatar Jun 17 '16 11:06 pankaj2020

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.

lekeCoder avatar Mar 29 '17 15:03 lekeCoder