webview 上传图片问题

使用系统自带的webview做了个简单的浏览器,在使用上传图片的时候出了问题,图片选择对话框能正常显示和选择,可是选择完成后不能把选择的图片路径填到 file输入框里, Log输出里显示是有值的,谁能帮忙看看, 我用的是android2.2的IDE, SDK版本是 16 - 23

代码:
Log.i("UPFILE","onActivityResult");

        if(null == mUploadMessage) return;
        if(null==data) return;
        if(resultCode==Activity.RESULT_CANCELED) return;

        Uri result = getUrl(data);
        if(null==result) return;

        if(mUploadCallback!=null){
            Log.i("UPFILE", "mUploadCallback after parser uri:" + result.toString());
            mUploadCallback.onReceiveValue(new Uri[]{result});
        }else {
            Log.i("UPFILE", "mUploadMessage after parser uri:" + result.toString());
            mUploadMessage.onReceiveValue(result);
        }
        mUploadCallback= null;
        mUploadMessage = null;


日志:

V/WebViewInputDispatcher: blockWebkitDraw
V/WebViewInputDispatcher: blockWebkitDraw lockedfalse
D/webview: blockWebkitViewMessage= false
D/CallbackProxy: sendMessageToUiThreadSync Package=com.dazongg.album message=134
I/UPFILE: in openFile Uri Callback has accept Type image/* has capture filesystem
D/AbsListView: Get MotionRecognitionManager
D/AbsListView: onVisibilityChanged() is called, visibility : 4
D/AbsListView: unregisterIRListener() is called 
D/AbsListView: onVisibilityChanged() is called, visibility : 0
D/AbsListView: unregisterIRListener() is called 
D/AbsListView: unregisterIRListener() is called 
D/AbsListView: unregisterIRListener() is called 
D/AbsListView: unregisterIRListener() is called 
D/AbsListView: unregisterIRListener() is called 
D/AbsListView: unregisterIRListener() is called 
D/AbsListView: unregisterIRListener() is called 
W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
D/AbsListView: onDetachedFromWindow
D/AbsListView: unregisterIRListener() is called 
I/UPFILE: onActivityResult
I/path: /storage/extSdCard/DCIM/Camera/20160404_093404.jpg
I/UPFILE: mUploadMessage after parser uri:file:///storage/extSdCard/DCIM/Camera/20160404_093404.jpg

你可能感兴趣的:(webview 上传图片问题)