Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:26:26+00:00 2026-06-16T03:26:26+00:00

I am trying to make a Browser on Android and it extends WebView class.

  • 0

I am trying to make a Browser on Android and it extends WebView class.

There are two functions of my Browser:

1.Could play html5 video tag.
(I enable HardwareAccelerate and setWebChromeClient and it works fine on Android 4.0.)

2.The Browser must have a transparent Background.
(On Android 4.0, just setBackground(0) is not enough. I must also use setLayerType(LAYER_TYPE_SOFTWARE, null).)

But when I use setLayerType(LAYER_TYPE_SOFTWARE, null), the video tag can not paly. And that means setLayerType(LAYER_TYPE_SOFTWARE, null) disable HardwareAccerlarate so the video tag can not work.

So Can I consider that On Android 4.0, the two function is conflicting?Is there any workaround?

//set BackGroundColor
setBackgroundColor(Color.argb(0, 0, 0, 0));
if(android.os.Build.VERSION.SDK_INT>=11){
    setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);
}

//set WebChromeClient
setWebChromeClient(new WebChromeClient());
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:26:27+00:00Added an answer on June 16, 2026 at 3:26 am

    I have to say that, seems no guys met this issue as me.
    So I think the two functions mentioned in my question is really conflicting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a dummy app to play around with Facebook's Android
I'm trying to make the background of my web browser transparent like wb.setBackground(Color.transparent) in
I am trying to make a simple android app. It is supposed to show
I'm trying to use JQTouch to make a basic mobile site to play a
I'm trying to make an OAuth 2.0 Provider and an Android application that is
I'm trying to build Chromium open source browser for Android. I have referred: Visit:
I'm trying to get HTML5 videos to play on mobile devices. They seem to
Trying to make the browser scroll to a specific ID with an added offset
I'm trying to make a open source kiosk like system. When the web browser
Okay, I'm trying to make a div fit to the size of the browser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.