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
10
votes
1 answer

Why android browser viewport is much smaller than actual screen size of the mobile phone, even when using width=device-width?

I would like to ask why my HTC Desire HD's browser reports viewport's width of 369px even though the actual pixel size of the screen is 480x800 WVGA. I am using in my page this CSS styles:
Frodik
  • 14,986
  • 23
  • 90
  • 141
10
votes
3 answers

How can I hit breakpoints (and see error line numbers) when debugging javascript on Android?

I'm trying to follow these instructions for debugging android javascript. I am aware of How can I debug javascript on Android?, but it's not clear to me how (or if) I can hit breakpoints - either using Chrome on the Android device, or the Android…
Нет войне
  • 1,139
  • 1
  • 11
  • 21
10
votes
4 answers

wrong borders' width in android browser

On android devices with high density screens (devicePixelRatio of 1.5) the borders of html elements have wrong border width. The two boxes here: jsbin sample, appear correctly on the desktop but on the android - both in chrome and the stack browser…
memical
  • 2,353
  • 1
  • 24
  • 36
10
votes
1 answer

Android 4 ICS Ice Cream Sandwich - iframe that contains a form

Android 4 duplicates inputs when the user focuses them. This duplicate input sits on top of the real input, and it functions pretty normal. This is odd, but ok, it seems to work. However, if those inputs reside within an iframe, the duplicated input…
Bill Keller
  • 793
  • 7
  • 22
9
votes
4 answers

how to create browser for android?

dear, i am a student of bca. i have to do one project in my last semester. so i decided to create web browser which run on android o.s. but i am totally for this application. so, can any one help me for that. i already installed all…
Tej
  • 107
  • 1
  • 1
  • 4
9
votes
3 answers

Launch Browser Intent with Custom Class - cannot find Activity

I want to specifically run the default Android browser for a given URL. I'm using this code: Intent i = new Intent(); i.setAction("android.intent.action.VIEW");…
the_void
  • 5,512
  • 2
  • 28
  • 34
9
votes
2 answers

Android Browser.BOOKMARKS_URI does not work on all devices. How to find out the correct uri for a given device?

I am trying to use Android Browser.BOOKMARKS_URI to CRUD device bookmarks from within my app ( https://play.google.com/store/apps/details?id=com.elementique.web ) It's working fine on most of the devices, but does not work on some :-( On those…
Pascal
  • 15,257
  • 2
  • 52
  • 65
9
votes
5 answers

Different rendering of font-size on Android and desktop browsers

I'm wondering why the font-size can be so different on my desktop and on my Android (the default browser, Chrome, on an up-to-date system). In summary, the font-size in

(paragraphs) is too big on Android. I use a CSS reset stylesheet (article in…

A.L
  • 10,259
  • 10
  • 67
  • 98
9
votes
1 answer

Getting the current URL in an Android browser

I'm searching for a way to get the current URL a user is visiting on the android browser application. I figured out that I can get the last visited URL from the Browser.BOOKMARKS_URI database using the following technique: Cursor cursor =…
Michael Gregorov
  • 541
  • 1
  • 6
  • 14
9
votes
3 answers

Disable the firing of touchcancel in Android Browser

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…
David G.
  • 371
  • 4
  • 11
9
votes
3 answers

Implementing three actions inside a single menu item in Android

I want to have similar menu item functionality as in the chrome browser for mobile as it is in the picture. I want to have back, forward, refresh menu items in a single row. How can I implement a similar menu item? is there any reference or is there…
9
votes
1 answer

Position: fixed menu not working in Android 4+

When using Android 4.1 on my Samsung Galaxy S3 and viewing my website, I'm trying to get the navigation menu on the left to stay where it is but it doesn't. Whenever I click on a link from the menu and refresh the page the page, it bounces halfway…
user1924813
  • 379
  • 1
  • 4
  • 12
8
votes
2 answers

How to implement Android 4.0 like swipe to dismiss functionality in ListView?

I'm working on an app in which I would like to implement swipe-to-dismiss functionality in the ListView - similar to what we see in Android 4.0's notification bar, recent apps list or browser tabs. I want to run the app on the devices running…
iamronak
  • 626
  • 6
  • 14
8
votes
1 answer

image.onload fires before image is completely loaded

I'm making a game using javascript + canvas. I use the code below to ensure var imgLoaded = 0; var imgToLoad = multiImgs; var onImgLoad = function() { imgLoaded++; if(imgLoaded == imgToLoad) { ctx.drawImage() } } for(var i = 0; i…
Ani
  • 1,655
  • 3
  • 23
  • 37
8
votes
1 answer

Use meta viewport width in Android Webview

I would like to use the viewport tag to fit html content into a WebView. This seems to work fine in Chrome browser, but does not scale to fit in the WebView. I made a simplified test activity: public…
SharkAlley
  • 11,399
  • 5
  • 51
  • 42
1 2
3
35 36