webview: is it possible to disable auto focus mode when using the camera on a web page?

I am developing a web-based stock management application and I am using an Android phone camera to scan barcodes.
It works well, the problem is only with the autofocus of the camera. Is it possible to disable it while using the device's camera on a web page? Or is there an application that disables the camera's auto focus globally on the phone? Or some potential solution?
I hope my question is clear, thanks in advance for your help!

react native – EXPO – WebView is not processed correctly after updating to SDK 33

SDK Version: 33
Platforms (Android / iOS / web / all): Android
My application displays graphics using the fusioncharts library. Everything worked fine in SDK 32, the graphic is loaded using an html file as a base and is displayed in a web view.



SDK 32 (in operation)

SDK 32

After updating to SDK 33 (Does not work, show HTML content)

SDK 33

does anyone know what happened? Was the Expo asset changed? Webview?


android: WebView or open in a browser for user guide

In an Android application I have a user guide section, which shows useful information for the user. This useful information is in the form of web pages.
So I am planning to show web content to the user. I could do this in two ways.

  • Using a web view, where web pages are displayed within the application.

    • fraud: you need to request permission from the user's Internet
  • Ask the user to open it in a browser.

    • fraud: You may have to select a browser if several browsers are installed.

Which is the favorite and why?

5.0 lollipop – Android application – error opening WebRTC URL in WebView

I am working on the development of an Android application, in which I want to open a URL in WebView. Now, if I open a simple URL in WebView (like www.google.com) it works fine. But I want to open a URL that uses WebRTC (Web Real-Time Communication) that says: "It seems that you are using an unsupported browser version." I searched google.com and discovered that WebRTC begins to be compatible with Android 5.0 (API level 21) and higher.

My version of Webview is:

using webView.getSettings (). getUserAgentString () I get the details of my web view.

 apply plugin: 'com.android.application'
        apply plugin: 'com.google.gms.google-services'

        android {
            compileSdkVersion 28
            defaultConfig {
                applicationId "com.cbtech.learningpod"
                minSdkVersion 21
                targetSdkVersion 28
                versionCode 1
                versionName "1.0"

        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

        dataBinding {
            enabled = true

    configurations.all {
        resolutionStrategy.eachDependency { details ->
            def requested = details.requested
            if (requested.group == "com.android.support") {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion "26.+"

    dependencies {
        implementation fileTree(dir: 'libs', include: ('*.jar'))
        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        implementation 'com.android.support:support-v4:28.0.0'
        implementation 'com.android.support:design:28.0.0'
        implementation 'com.google.firebase:firebase-messaging:17.3.4'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
        implementation 'android.arch.lifecycle:extensions:1.1.1'
        implementation 'com.android.volley:volley:1.1.1'
        implementation 'com.android.support:recyclerview-v7:28.0.0'
        implementation 'com.android.support:cardview-v7:28.0.0'
        implementation 'com.google.code.gson:gson:2.8.2'
        implementation 'com.squareup.picasso:picasso:2.5.2'
        implementation 'com.github.bumptech.glide:glide:3.7.0'
        implementation 'com.android.support:customtabs:28.0.0'
        implementation 'com.squareup.okhttp3:okhttp:3.10.0'
        implementation 'org.apache.commons:commons-lang3:3.6'
        implementation('com.paytm:pgplussdk:1.3.3') {
            transitive = true;

The AndroidManifest.xml file is as follows:









The MyFragment.java file is as follows:

 public class MyFragment extends Fragment {
        String url;
        private WebView webView;
        private ProgressDialog progressDialog;
        final String CUSTOM_TAB_PACKAGE_NAME = "com.android.chrome";
        CustomTabsClient mCustomTabsClient;
        CustomTabsSession mCustomTabsSession;
        CustomTabsServiceConnection mCustomTabsServiceConnection;
        CustomTabsIntent mCustomTabsIntent;

        public static MyFragment newInstance(String url) {
            BBBFragment fragment = new BBBFragment();
            Bundle args = new Bundle();
            args.putString("URL", url);
            return fragment;

        public void onCreate(Bundle savedInstanceState) {
            if (getArguments() != null) {
                url = getArguments().getString("URL");

        @RequiresApi(api = Build.VERSION_CODES.O)
        public View onCreateView(LayoutInflater inflater, ViewGroup container,
                                 Bundle savedInstanceState) {
            // Inflate the layout for this fragment
            View view = inflater.inflate(R.layout.fragment_myfragment, container, false);
            webView = view.findViewById(R.id.webviewBBB);
            try {
                Log.d("BBB URL is ", url);

                Log.d("WebView Version", "=======>" + webView.getSettings().getUserAgentString());
                //   webView = (WebView) view.findViewById(R.id.webviewBBB);
                webView.setWebChromeClient(new MyWebClient());
                webView.setWebViewClient(new WebViewClient());
                webView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36");

                // AppRTC requires third party cookies to work
                CookieManager cookieManager = CookieManager.getInstance();
                cookieManager.setAcceptThirdPartyCookies(webView, true);
                //webView.setWebViewClient(new MyBrowser());

             /*   CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
                CustomTabsIntent customTabsIntent = builder.build();
                customTabsIntent.launchUrl(getActivity(), Uri.parse(url));*/

            } catch (Exception e) {
            return view;

        private class MyBrowser extends WebViewClient {
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                return true;

            public void onPageStarted(
                    WebView view, String url, Bitmap favicon) {
                Log.i("Tag", "page started:" + url);
                super.onPageStarted(view, url, favicon);

            public void onPageFinished(WebView view, final String url) {
                Log.i("Tag", "page finished:" + url);

            //Show loader on url load
            public void onLoadResource(final WebView view, String url) {
                Uri uri = Uri.parse(url);
                CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder();
                //Open the Custom Tab
                intentBuilder.build().launchUrl(getContext(), uri);

            public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError er) {


        private class MyWebClient extends WebChromeClient {

            @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
            public void onPermissionRequest(PermissionRequest request) {


         * Convenience method to set some generic defaults for a
         * given WebView
         * @param webView
        @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
        private void setUpWebViewDefaults(WebView webView) {
            WebSettings settings = webView.getSettings();

            // Enable Javascript

            // Use WideViewport and Zoom out if there is no viewport defined

            // Enable pinch to zoom without the zoom buttons

            // Allow use of Local Storage

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                // Hide the zoom controls for HONEYCOMB+

            // Enable remote debugging via chrome://inspect
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

            webView.setWebViewClient(new WebViewClient());

            webView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36");

            // AppRTC requires third party cookies to work
            CookieManager cookieManager = CookieManager.getInstance();
            cookieManager.setAcceptThirdPartyCookies(webView, true);

The image link is as follows: https://i.stack.imgur.com/bTjkk.png

Can we remove the WebView application from the Android system to free up space?

I am looking to free up space on my Android device, I need suggestions. Thank you

Can you enable hardware acceleration for JavaFX WebView?

I was wondering if I could enable hardware acceleration for the JavaFX WebView object.

APK – Webview vs trusted web activity

Stack exchange network

The Stack Exchange network consists of 176 question and answer communities that include Stack Overflow, the largest and most reliable online community for developers to learn, share their knowledge and develop their careers.

Visit Stack Exchange

reactjs: check if an inserted video ends using WebView in native reaction

I could embed a video of you tube in my application using a web view with success.
My problem is that I wanted to check if the video finished or not. In fact, I want to activate a js function when the video is going to end. Is there any way to detect that the video will end in the web view in native mode? Here is my little code:


If there is no way, you can tell me some alternative to do that. Thanks in advance.

android – MediaPlayer native webview content

enter the description of the image hereHi you can do a native media player with streaming function and with a song posted on the server and list the playlist with a webview, I want to put a native player down in the app if everything else the design and everything that is echoed in webview, attached image . Thank you

android studio – Open pop-up window in my WebView

from the Windows browser when I enter a web page where after registering a new pop-up window is displayed, this pop-up window shows no problems, but when I try to do this on Android from a WebView that pop-up window does not appear, after entering The user and password is still showing the same page.

This is the code that I have in the class that extends from Fragment

                mWebView.getSettings (). setJavaScriptEnabled (true);
    mWebView.getSettings (). setAppCacheEnabled (true);
    mWebView.getSettings (). setSupportZoom (true);
    mWebView.getSettings (). setBuiltInZoomControls (true);
    mWebView.getSettings (). setDisplayZoomControls (false);
    mWebView.getSettings (). setPluginState (WebSettings.PluginState.ON);

    mWebView.getSettings (). setLoadWithOverviewMode (true);
    mWebView.getSettings (). setUseWideViewPort (true);
    mWebView.setInitialScale (1);

    mWebView.loadUrl ("https://paginaweb.es");

    mWebView.setWebChromeClient (new WebChromeClient () {
        public boolean onCreateWindow (WebView view, boolean isDialog,
                                      boolean isUserGesture, Message resultMsg) {

            WebView newWebView = new WebView (getActivity ());

            newWebView.getSettings (). setJavaScriptEnabled (true);
            newWebView.getSettings (). setAppCacheEnabled (true);
            newWebView.getSettings (). setSupportZoom (true);
            newWebView.getSettings (). setBuiltInZoomControls (true);
            newWebView.getSettings (). setDisplayZoomControls (false);
            newWebView.getSettings (). setPluginState (WebSettings.PluginState.ON);

            newWebView.getSettings (). setLoadWithOverviewMode (true);
            newWebView.getSettings (). setUseWideViewPort (true);
            newWebView.setInitialScale (1);

            newWebView.getSettings (). setSupportMultipleWindows (true);
            view.addView (newWebView);
            WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;
            transport.setWebView (newWebView);
            resultMsg.sendToTarget ();

            newWebView.setWebViewClient (new WebViewClient () {
                public boolean shouldOverrideUrlLoading (WebView view, String url) {
                    view.loadUrl (url);
                    return true;

            return true;


What can I do to make that pop-up window visible in the WebView?