android-browser

How to disable highlighting of a canvas on tap for Nexus Galaxy?

非 Y 不嫁゛ 提交于 2019-12-05 20:27:54
I'm writing a web app that uses an HTML5 canvas and testing on a Nexus Galaxy. When the user taps on the canvas, it highlights teal for a second, even though I am calling preventDefault() on the touchstart event. I have also tried some CSS rules. How do I disable this brief highlighting? Setting the CSS rule -webkit-tap-highlight-color to transparent on the canvas seemed to do the trick for me. Note that I also did preventDefault and stopPropagation, so one of those might have had an effect too. 来源: https://stackoverflow.com/questions/9254252/how-to-disable-highlighting-of-a-canvas-on-tap-for

Android browser media player (stagefright?) displayed media name

会有一股神秘感。 提交于 2019-12-05 20:22:51
When the Android browser opens a media file it can play, the built-in (stagefright?) media player opens up to stream it. A title for this media is displayed on the player dialog, based on the URL. The URL in this case was http://10.0.37.195/waug_mp3_128k . The media player simply uses the last part of the path as its title. Is it possible to change the displayed title? I have tried a Content-Disposition header, but it had no effect: Content-Disposition: inline; filename=Some Better Title The short answer is no. I don't think you can change the displayed title to show something else from the

Log <GATE-M>DEV_ACTION_COMPLETED</GATE-M> seems to delay execution on Android

假装没事ソ 提交于 2019-12-05 07:23:30
I've recently noticed that my app has the occasional LAG. and by LAG I mean it can take up to 40 seconds, depends if I use Wifi or mobile data... I load a page url, and then load js for execution: webView = (WebView) view.findViewById(R.id.WebView); webView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { logDebug("Loading URL: " + url); super.onPageStarted(view, url, favicon); } @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { return WrappingClass.this.shouldOverrideUrlLoading(view, url); }

Disable the firing of touchcancel in Android Browser

戏子无情 提交于 2019-12-05 03:39:46
I am making a mobile website that uses JavaScript touch events. Things work fine in iOS Safari and Chrome for Android, but the stock Android Browser (version 4.1.2) is giving me trouble. During a touch process, the touchstart and touchmove events are called as expected. However, one of the actions performed by the touchmove handler seems to trigger a premature touchcancel event. (I'm not sure whether this is significant, but the action that triggers the touchcancel is the modification of an SVG object's viewBox attribute.) If I comment out this action, the touch process proceeds normally (i.e.

Can't call functions from first included javascript file from the second included js file

白昼怎懂夜的黑 提交于 2019-12-05 02:41:53
问题 I'm making an Android application with Apache Cordova. Everything works on Android 6.0, which is using Chrome by default, the problem is on Android 4.2.2 (Samsung Galaxy S4 mini) which is using the default Android browser. If i'm not mistaken, then the application is "started" in the default Android browser after it's compiled with cordova and installed on the Android operating system. In the default Android browser the page is empty on load. But in Chrome everything works fine. The problem

How to enable Safe Search in my Android browser

两盒软妹~` 提交于 2019-12-05 02:09:54
Requirement I have requirement in my browser to enable/disable safe search while browsing. On Google Safe Search Page Block explicit results on Google using SafeSearch You can filter explicit search results on Google, like pornography, with the SafeSearch setting. SafeSearch isn’t 100% accurate. But it can help you avoid explicit and inappropriate search results on your phone, tablet, or computer. As you know when safe search is turned on (like google chrome), then user does not see results of many threat types, infected pages, social engineering pages, pornography etc. and block explicit

How to make :checked work on Android Browser?

萝らか妹 提交于 2019-12-04 23:43:09
I'm trying to make a form that has a list of default options, and which can also expand to show a couple of exta options. I do this with the following CSS code: .myForm .moreOpts {display:none;} .myForm #more:checked +*+ .moreOpts {display:block;} with the following HTML: <form action="#" class="myForm"> <ul> <li> <input type="checkbox" id="pref-1" name="pref-1" value="1"> <label for="pref-1">Foo</label> </li> <li> <input type="checkbox" id="pref-2" name="pref-2" value="2"> <label for="pref-2">Bar</label> </li> <li> <input type="checkbox" id="more" name="more" value="true"> <label for="more"

How to open external URL in default browser and all internal links in WebView Android?

别等时光非礼了梦想. 提交于 2019-12-04 21:24:19
I am using WebView in my page and using local file assets to displaying in WebView but in main HTML page external website (not local) and I want to open just that link in default Browser on the users device This is my code in 'onCreate' method WebView v; v=(WebView) rootView.findViewById(R.id.webView1); v.getSettings().setJavaScriptEnabled(true); WebViewClient vc= new WebViewClient(); v.setWebViewClient(vc); v.loadUrl("file:///android_asset/home.html"); When I run the application the internal link is working good but the external link "www.apple.com" en in the web view I searched the same

HTML5 canvas issues on Android 4.1.1 [closed]

一个人想着一个人 提交于 2019-12-04 18:02:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Now that Android 4.1.1 is out there on some phones I noticed that issues start to pop out using default browser and this OS. In my case I have an application that uses web views (meaning default browser) and a

Is there a workaround for the Android browser bug with CSS-Position and clickable areas?

≯℡__Kan透↙ 提交于 2019-12-04 16:27:09
问题 When you have some clickable content like <a> , <input> or <area> and before this you have an absolutely positioned element with a bigger z-index, there is the wrong behavior of 'click-through'. I click on the area where the clickable element is behind the front element. In other browsers there is the right behavior that the click does not go through the front element. But only in Android Browser you can click through the front element and activate the element behind. This is a known bug and