Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20523

Android: Webview with Hardware Acceleration, software rendering doesn't work.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.0, Release 5.1.2
    • Fix Version/s: Release 6.0.2
    • Component/s: Android
    • Labels:
      None
    • Environment:

      Operating System Mac OS X
      Node.js Version = 0.12.0
      npm Version = 2.5.1
      CLI Version = 5.0.6
      Android API label (19 to later)

    • Story Points:
      13
    • Sprint:
      2017 Sprint 09 SDK

      Description

      Issue Description

      Webview with Hardware Acceleration within Android doesn't work on specific devices (Motorola Moto G with Android 5 and Galaxy S4 with Android 5, Android Devices HTC, samsung galaxy note 2, Samsung Device SM-J500FN)
      When put on Software Acceleration, it works. But the Hardware accelerated webview doesn't work on those specific devices.

      Test Case

      app.js

      var webview = Titanium.UI.createWebView({
          url : 'http://www.promobutler.be/nl/folders/hubo?fid=64007&embedded=true',
          height : '100%',
          width : '100%',
          borderRadius:1
      });
       
      var window = Titanium.UI.createWindow();
      window.add(webview);
      window.open();
      

      tiapp.xml

      <android
          xmlns:android="http://schemas.android.com/apk/res/android">
              <manifest android:installLocation="preferExternal" >
               
                  <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="23"/>
       
              </manifest>
          </android>
      

      Additional Info

      -Tried in Native Android with a Native Webview with Hardware Acc, on those devices, it worked:

      WebView webView = (WebView)findViewById(R.id.webview); 
      webView.getSettings().setJavaScriptEnabled(true); 
      webView.setWebChromeClient(new WebChromeClient());// opens links inside same chrome webview 
      webView.setWebViewClient(new WebViewClient()); // opens links inside same webview 
      webView.loadUrl("http://www.promobutler.be/nl/folders/hubo?fid=64007&embedded=true"); 
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                morahman Motiur Rahman
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-7023
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code