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
Post a Comment