CopyPastor

Detecting plagiarism made easy.

Score: 0.7528097033500671; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-11-19
by An Nguyen

Original Post

Original - Posted on 2017-11-28
by meuser07



            
Present in both answers; Present only in the new answer; Present only in the old answer;

**You need to accept camera permission to use using below lines in your activity.**
webview.setWebChromeClient(new WebChromeClient() { @Override public void onPermissionRequest(final PermissionRequest request) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { request.grant(request.getResources()); } } });
I was trying same thing. Below code worked to me.
First in manifest file we have to add camera hardware permission true using uses permission tag.
Then need to accept camera permission to use using below lines in your activity.
webview.setWebChromeClient(new WebChromeClient() {
@Override public void onPermissionRequest(final PermissionRequest request) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { request.grant(request.getResources()); } }
});

        
Present in both answers; Present only in the new answer; Present only in the old answer;