Using navigator to do Route Jump in weex

at present, we try to use navigator as a route jump in the weex project. Depending on the platform, we have written a method to return the path

clipboard.png
navigatorurlwebweex playgroundAndroid studio

clipboard.png
now I especially want to achieve the successful use of the Native end. If there is a big god who knows it, I hope to answer it; try to post the code and forgive me for being a rookie who doesn"t know anything; it can be paid, thank you!

Mar.17,2021

this problem is due to the fact that Android 7 / SDK 24 or above is not allowed to use file://, and only content:// can be used to access system files. The solution is to add the following to the onCreate of WxApplication:

import android.os.Build;
import android.os.StrictMode;

super.onCreate();
if (Build.VERSION.SDK_INT>=18) {
  StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
  StrictMode.setVmPolicy(builder.build());
  builder.detectFileUriExposure();
}
...

Menu