因为业务的需求,要做到客户端不能截屏和拍照。 苹果系统是通过给客户端安装证书实现的。安卓系统怎么实现呢?
448993299
- 发布:2017-08-05 00:34
- 更新:2017-10-30 11:43
- 阅读:4798
document.addEventListener("plusready",function(){
var main = plus.android.runtimeMainActivity();
var mwindow = main.getWindow();
plus.android.importClass(mwindow);
mwindow.addFlags(0x00002000);
})
1***@qq.com
我加了没效果啊,还是能截屏
2018-07-04 10:31
lancetest
现在执行会报错
[JS Framework] Failed to execute the callback function:
23:45:25.108 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.;at com.android.internal.policy.impl.PhoneWindow.addFlags
23:45:25.210 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.;at com.android.internal.policy.impl.PhoneWindow.addFlags
23:45:25.230 getTemplateInfo== template md5 b7e83db7e3dd9cb3cbf4d638f5e74625 length 3546550 base64 md5 t+g9t+PdnLPL9NY49edGJQ== response header {"templateSourceBase64MD5":["t+g9t+PdnLPL9NY49edGJQ=="],"templateSourceMD5":["b7e83db7e3dd9cb3cbf4d638f5e74625"]}
2019-12-20 10:58