Code example for ValueCallback

Methods: onReceiveValue

0
            if (null == mUploadMessage) {
                return; 
            } 
            Uri result = intent == null || resultCode != RESULT_OK ? null
                    : intent.getData();
            mUploadMessage.onReceiveValue(result);
            mUploadMessage = null;
        } 
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public void onProgressChanged(WebView view, int progress) {
        Logger.d(getClass().getSimpleName(), "onProgressChanged(), progress: " + progress);
 
        // Posts current progress to the ProgressBar 
        mProgressBar.setProgress(progress);
 
        // Hide the progress bar as soon as it goes over 85%