android
https://nativesupport.dcloud.net.cn/UniMPDocs/Extension/android?id=uniapp%e4%b8%ad%e5%b8%b8%e8%a7%81%e8%b7%af%e5%be%84%e8%af%b4%e6%98%8e
Uri uri = mUniSDKInstance.rewriteUri(Uri.parse("_doc/a.png"), URIAdapter.FILE);
Log.e(TAG, uri.toString())
- 日志查看
修改项目中assets/data/dcloud_control.xml 内部信息。将syncDebug改为true,开启调试模式。 注意正式版需要改为false!!! 修改后查看io.dcloud.unimp
进程查看log。TAG为console
<hbuilder debug="true" syncDebug="true" >
<apps>
<app appid="__UNI__5B41780" appver=""/>
</apps>
</hbuilder>
@UniJSMethod (uiThread = true)
public void gotoNativePage(){
if(mUniSDKInstance != null) {
Intent intent = new Intent(mUniSDKInstance.getContext(), NativePageActivity.class);
mUniSDKInstance.getContext().startActivity(intent);
}
}