Questions tagged [android-browser]

The web browser used on older (pre 4.4) and non-Google experience versions of Android, based on the open-source WebKit layout engine, coupled with Chrome's V8 JavaScript engine

The web browser available in Android is based on the open-source WebKit layout engine, coupled with Chrome's V8 JavaScript engine. The browser scores 100/100 on the Acid3 test on Android 4.0.

528 questions
2
votes
1 answer

Random jquery mobile / angular internal errors with android browser

I've implemented a html5 webapp using jquery-mobile, angularjs and the jqm angular adapter. On android devices using the default android browser (chrome works fine!) I randomly experience errors in the jqm file like "# has no method 'addClass' or…
2
votes
2 answers

In android device how can we compress video before upload Via Browser?

Is it possible to video compress before upload via browser? Like in iOS devices, browse video using HTML input type file tag and iOS make compress before uploading. Or any javascript or jQuery library helping for compress in Android device browser…
Wiram Rathod
  • 1,895
  • 1
  • 19
  • 41
2
votes
1 answer

application cache issues with android browser

I'm into application cache related work in HTML5. I've added addCacheListeners() in body onload. This works fine with mobile safari and chrome, but NOT with android browser. when it comes to the android browser, error event is fired. function…
dfernando
  • 53
  • 7
2
votes
0 answers

Media Query not working on Android 4.2.2 Galaxy Nexus

I have a mobile site with media queries inside the main CSS file. The site display correct as per the media queries on iphones, tabs, and android Chrome. But when it comes to the android browser it doesn't always display right. I am testing on a…
Jason Storey
  • 469
  • 1
  • 3
  • 18
2
votes
1 answer

Target android browser only in CSS

Is there a way to target the Android default browser in CSS? Something similar to either the tags, or the @-moz-document url-prefix() {}? Thanks!
2
votes
0 answers

Why content-width:320 is ignored by Android and defaults to device-width? How to fix to 320?

according to http://developer.android.com/guide/webapps/targeting.html "Width values that are (...) less than (or equal to) 320 result in a value equal to the device-width" Does anyone know how to force the viewport to be exactly 320px wide for all…
Greg Bala
  • 3,563
  • 7
  • 33
  • 43
2
votes
0 answers

Android browser does not update DOM while keyboard open

I have a textarea element on a web page, with some JavaScript code which executes on certain keyboard events; among other things the JS code should make some visible updates to the page. On desktop browsers, and also on iOS this works fine, however…
codebox
  • 19,927
  • 9
  • 63
  • 81
2
votes
2 answers

addthis_widget.js throwing Cannot read property '_pmh' of null error on Android and Chrome

I am using a JavaScript error logging tool to log any JavaScript errors on my mobile site and I am seeing a large number (22,000 in under a month) of this error: Uncaught TypeError: Cannot read property '_pmh' of null I can see from the…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
2
votes
1 answer

Android Browser breaks with CSS media query on resolution

It seems like the Android Browser doesn't support (and breaks when using) min-resolution in a media query. I've read a bunch of sites suggesting using it for Android so I'm a bit confused why it's breaking my site. This works (but also works in…
bearfriend
  • 10,322
  • 3
  • 22
  • 28
2
votes
1 answer

Android keyboard keeps appearing after closed

I have a textarea in my html. When the user taps on it, the keyboard properly pops up. After hitting the keyboard close button, the keyboard keeps appearing when tapping elsewhere on the screen. Is there a way to have keyboard only appear on input…
TheOne
  • 10,819
  • 20
  • 81
  • 119
2
votes
1 answer

Android Browser JavaScript Not Properly Measuring Height

I am using a jQuery script to place an element a given distance from the bottom of the screen. (Yes, JavaScript is necessary to get the dynamic, intended behavior on this page.) For most browsers, the element, which is represented by the grey bar at…
Oliver Spryn
  • 16,871
  • 33
  • 101
  • 195
2
votes
1 answer

Download a file in hidden iframe: Android equivalent in Comet context?

I am currently using the following JS code to trigger a file download without leaving the page I'm on: var iframe = document.createElement('iframe'); iframe.style.display = 'none'; document.body.appendChild(iframe); iframe.src = "/somefile.zip"; It…
syam
  • 14,701
  • 3
  • 41
  • 65
2
votes
2 answers

Add bookmark to chrome browser on Android

Is it possible to add a bookmark (by code) to Google chrome browser Android? Does anyone knows how?
Asaf Pinhassi
  • 15,177
  • 12
  • 106
  • 130
2
votes
0 answers

Prevent/customize android scrolling to focused input

On my form I have a header which uses fixed positioning and a div of height 100% which contains the form inputs. When an input is focused android scrolls the page to that input, which places the input 'behind' the header (although android does keep…
wheresrhys
  • 22,558
  • 19
  • 94
  • 162
2
votes
1 answer

JavaScript detect selection in Android browser

How could I detect in JavaScript in the Android Browser the event when the user selects or changes the selection of some text and elements in the HTML page using JavaScript? Android browser won't dispatch touch end is such situation? Any ideas…
rafalry
  • 2,620
  • 6
  • 24
  • 39