like https://github.com/appium/java-client/pull/1603/
Activity