Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Standout window when click on HOME button. #36

Open
pankaj2020 opened this issue Jun 17, 2016 · 1 comment
Open

Hide Standout window when click on HOME button. #36

pankaj2020 opened this issue Jun 17, 2016 · 1 comment

Comments

@pankaj2020
Copy link

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 pankaj2020 changed the title Hide Standout window when click on HOME button click. Hide Standout window when click on HOME button. Jun 17, 2016
@lekeCoder
Copy link

lekeCoder commented Mar 29, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants