android-browser

Add bookmark to chrome browser on Android

六月ゝ 毕业季﹏ 提交于 2019-12-04 15:10:38
Is it possible to add a bookmark (by code) to Google chrome browser Android? Does anyone knows how? Farhan Munir Yes it is possible, I can do it. If you're familiar with content providers both default and chrome provide bookmarks content providers so we can use these to change/insert bookmarks easily. ContentValues values = new ContentValues(); values.put(Browser.BookmarkColumns.TITLE, "Yahoo Inc."); values.put(Browser.BookmarkColumns.URL, "http://www.yahoo.com"); values.put(Browser.BookmarkColumns.BOOKMARK, 1); values.put(Browser.BookmarkColumns.DATE, 0); // add bookmark to default browser

Getting the current URL in an Android browser

血红的双手。 提交于 2019-12-04 09:49:51
问题 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 = context.getContentResolver().query(Browser.BOOKMARKS_URI, Browser.HISTORY_PROJECTION, null, null, Browser.BookmarkColumns.DATE + " DESC"); cursor.moveToNext(); String url = cursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX); cursor.close(); The problem

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

不打扰是莪最后的温柔 提交于 2019-12-03 20:25:10
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 is in the default Android 4.2.2 browser. It's not working in the default browser for Nokia 1520 (which

How to get the source code of Chromium for Android

家住魔仙堡 提交于 2019-12-03 15:59:41
I'm trying to build Chromium open source browser for Android. I have referred: Visit: http://code.google.com/p/chromium/wiki/AndroidBuildInstructions But, I think it will only build the test bundles not the full browser. Any idea how can I have it running on my device for making some changes to it through source code. I checked out the code from Git as recommended and build it accordingly using depot_tools and targeting OS as android. All the build environment is correct and I can make "make -j4" command. But still eclipse source code is not available for me to make some changes. How can I

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

懵懂的女人 提交于 2019-12-03 10:32:26
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 you cannot avoid it. It's even in newer versions (I test on 2.3.3 in the official Android emulator).

Getting the current URL in an Android browser

被刻印的时光 ゝ 提交于 2019-12-03 03:20:46
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 = context.getContentResolver().query(Browser.BOOKMARKS_URI, Browser.HISTORY_PROJECTION, null, null, Browser.BookmarkColumns.DATE + " DESC"); cursor.moveToNext(); String url = cursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX); cursor.close(); The problem with this, is that the Browser.BOOKMARKS_URI db doesn't get updated when the user presses back in order

HTML5 audio not playing multiple times in Android 4.0.4 device Native Browser

隐身守侯 提交于 2019-12-02 15:55:33
I am currently working on an HTML5 project. There is an issue on playing same audio file multiple times in the same page in Android native browser . The issue is specifically noticed on Android ICS 4.0.4 version. In this version the audio will be played once , but when initiated again audio will not be played . The same thing is working perfectly in Android ICS 4.0.3 Version and on the newer 4.1.1 version. Tested Devices: Samsung Galaxy Tab (Android 4.0.4) : Playing first time only then it doesn't play HTC One (Android 4.0.4) : Playing first time only then it doesn't play Sony Tab (Android 4.0

how to work with pop ups window in android webview

半城伤御伤魂 提交于 2019-12-01 21:24:41
问题 I am developing browser like application using a Webview for my own understanding. I am not yet clear how to work with pop-ups in android Webview. I came across these methods onJsAlert() , onJsBeforeUnload() , onJsConfirm() etc to handle java script pop ups. from this link and also developer link these work when there is a jsAlert but how do i handle pop-up which opens in new window ? I just want to know is there is any other way to handle pop up for websites in android webview like opening

how to work with pop ups window in android webview

青春壹個敷衍的年華 提交于 2019-12-01 18:36:46
I am developing browser like application using a Webview for my own understanding. I am not yet clear how to work with pop-ups in android Webview. I came across these methods onJsAlert() , onJsBeforeUnload() , onJsConfirm() etc to handle java script pop ups. from this link and also developer link these work when there is a jsAlert but how do i handle pop-up which opens in new window ? I just want to know is there is any other way to handle pop up for websites in android webview like opening in new tab or open in new window using webview. I am also having trouble to open urls which are opened

WebView and native browser crash on simple HTML

为君一笑 提交于 2019-12-01 09:28:35
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 ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris