Android Wear: override the correct gesture so the UI doesn't destroy the action?

In Android Wear, when you shoot to the right, the current activity is destroyed.

I am having two problems because of this:

  • viewpager not working: it can be scrolled to the left, when you try to swipe across the screen, the app is closed

  • instead of being stopped, the action is destroyed.

I am wondering if there is a way to override this.

I tried OnKeyDown and OnBackpressed but they won't start.

Thank you for your help,

Kirill

+3


source to share





All Articles