android-browser

Android Browser Rendering border radius incorrectly with larger border

不羁岁月 提交于 2020-01-03 05:30:13
问题 I'm running into a problem on the Android Webkit browser. This is happening on Android 4.0.3 and earlier. The design calls for a 15 pixel top border within a div and then rounded corners. I am using border-radius to accomplish this and this works fine in all modern browsers but on Android it looks like this: The HTML looks like this: <section class=" sub_nav" id="quick_access_section"> <header> <h1>Headline</h1> </header> <div class="wrapper cw_humans"> .... <div class="text">Nam condimentum

Values for document.readyState in Android 2.3 browser?

醉酒当歌 提交于 2020-01-02 07:03:02
问题 I found out that once the document has loaded, then in the Android 2.3.5 browser, the value of document.readyState is "loaded" instead of the standard "interactive". Where are the possible values of document.readyState documented for the Android 2.3 browser? 来源: https://stackoverflow.com/questions/13348029/values-for-document-readystate-in-android-2-3-browser

WebView and native browser crash on simple HTML

老子叫甜甜 提交于 2019-12-30 10:55:10
问题 After struggling to find the cause of a crash in my app's WebView, I discovered that a very basic webpage causes even the native Android browser on two specific HTC models to crash. The models in question are an HTC Desire HD (Android 2.3.5) and an HTC Desire C (Android 4.0.3). Other devices have no problems loading the page, including a few other HTC models. The HTML causing the crash: <html> <body> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt

Android programmatically delete Chrome / default browser cookies, history, searches

和自甴很熟 提交于 2019-12-30 07:14:08
问题 Like the title. I want to delete cookie, cache of browser of Android by coding in my application. (browser not webview) Thank you! 回答1: In your Activity or Service , add ContentResolver cR = getContentResolver(); if(Browser.canClearHistory(cR)){ Browser.clearHistory(cR); Browser.clearSearches(cR); } where Browser is the android.provider.Browser class. This will clear the default browser's history. 回答2: Yes it is possible to clear chrome history & searches from your application. Please see

Samsung Galaxy Tablet does not allow entering floating point numbers to inputs with “number” type

荒凉一梦 提交于 2019-12-29 08:28:10
问题 Our client wants us to display numeric keyboard for an input field so basically I created a field like: <input type="number" name="quantity" step=".01" value="0.00" /> However, Galaxy Tablet erases "." and merges numbers before and after it, also disables "." in the keyboard. Is there another way to solve this issue or display numeric keyboard in input field when using type="text"? Note: I tried using pattern attribute (which works on iPhone). I tested this issue on various Android devices

Samsung Galaxy Tablet does not allow entering floating point numbers to inputs with “number” type

扶醉桌前 提交于 2019-12-29 08:28:09
问题 Our client wants us to display numeric keyboard for an input field so basically I created a field like: <input type="number" name="quantity" step=".01" value="0.00" /> However, Galaxy Tablet erases "." and merges numbers before and after it, also disables "." in the keyboard. Is there another way to solve this issue or display numeric keyboard in input field when using type="text"? Note: I tried using pattern attribute (which works on iPhone). I tested this issue on various Android devices

Autostart html5 video using android 4 browser

╄→尐↘猪︶ㄣ 提交于 2019-12-28 02:08:06
问题 I want to auto-start android html5 video using android 4 ice cream sandwich browser. I tried many java-script functions and autobuffer autoplay tags of html5 video. But nothing worked. I start android chrome client in webview via android app and that client should be able to auto-start video. When click the play button video plays but not auto play. Is it restricted in android? Other thing to notice is that no call back methods are called in chromeClient even when we click the play button &

Read browser history in Marshmallow And Nougat Android

本秂侑毒 提交于 2019-12-25 08:39:44
问题 I am trying to use Android Browser.BOOKMARKS_URI in Android Marshmallow. Until Lollipop, there is a way to read the history from the Chrome Browser using the permission. But in Marshmallow the permission is removed. Does any other alternative available for reading the browser history on a Marshmallow device? I referred This Official Android Documentation, But not get a clear idea. Thanks. 回答1: Due to security reason the browser history read/write are now not accessible by to the app. This

Stop android browser from loading URL

被刻印的时光 ゝ 提交于 2019-12-25 02:11:39
问题 Is there any way to stop android native browser from being loading specific URL (eg. xyz.com) provided by my app and show notification about blocking ? If we can't stop then how to redirect browser to that another HTML page like otherPage.html (that is saved in sdcard) whenever xyz.com is visited? I am busting my head into for many days with lot of searching, but no luck so far. Any example/tutorial would be great. Bundle Thanks 回答1: You can create a WebViewClient and "filter" specific url:

Android stock browser on Xperia Z does not render html correctly

无人久伴 提交于 2019-12-24 21:01:27
问题 I have an HTML page which is displayed correctly in all devices and all browser except the stock Android browser in Xperia Z. On this particular device running Android 4.2.2, I am using jQuery v1.7.2, and using $('div').slideUp and $('div').slideDown methods only, and it results in text distortion (it is in English, so I suppose it is not related to any specific font), the text appears as horizontal lines as they would appear for a fraction of a second while sliding up/ down. I have tried