android - Dismiss non-application Window when Home button pressed -


i have non-application window (i.e. window no activity context, appears on other apps). window technically view has been added using windowmanager.addview() , type_system_error.

i remove window when home button pressed seems impossible intercept home button press.

is there way this?

edit: app not have activity cannot use methods on activity class.

you can detect when user press home button with:

http://developer.android.com/reference/android/app/activity.html#onuserleavehint()

but can't override system behaviour action.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -