Better to use this way https://github.com/crosswalk-project/crosswalk/blob/master/runtime/android/java/src/org/xwalk/core/AndroidProtocolHandler.java#L76