this is test title
this is test content....
JSCallback jsCallback; String path=""; @JSMethod(uiThread = true) public void setImage(JSCallback jsCallback){ this.jsCallback=jsCallback; if(mWXSDKInstance != null && mWXSDKInstance.getContext() instanceof Activity) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_PICK); intent.setType("image/*"); ((Activity)mWXSDKInstance.getContext()).startActivityForResult(intent, 0); } } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == 0) { Uri uri=data.getData(); path =RealPathFromUriUtils.getRealPathFromUri(mWXSDKInstance.getContext(), data.getData()); jsCallback.invoke(path); } super.onActivityResult(requestCode, resultCode, data); }
原文转载:http://www.shaoqun.com/a/488028.html
rakuten:https://www.ikjzd.com/w/2718
jpgoodbuy:https://www.ikjzd.com/w/1553
点通:https://www.ikjzd.com/w/1913
thisistesttitlethisistestcontent....JSCallbackjsCallback;Stringpath="";@JSMethod(uiThread=true)publicvoidsetImage(JSCallbackjsCallback){this.jsCallback=jsCallback;if(mWXSDKInstance!=null&
捷汇:https://www.ikjzd.com/w/419
巨鲸:https://www.ikjzd.com/w/1986
【版纳旅游】—云南西双版纳哈尼族嘎汤帕节 - :http://tour.shaoqun.com/a/10823.html
海口到三亚凤凰岭有多远?海口到亚凤凰岭自驾车路线?:http://tour.shaoqun.com/a/63123.html
惠州漂流有哪些?惠州漂流哪个最刺激?:http://tour.shaoqun.com/a/23980.html
No comments:
Post a Comment