android-browser

Open Chrome App with URL

我与影子孤独终老i 提交于 2021-02-05 20:23:56
问题 Is there a way to open Chrome app on Android from default Android browser? I'm able to open the app, but it doesn't redirect user to correct page. This is what I tried: <a href="googlechrome://www.toovia.com"> I saw that I may have to form an intent URL, but I was hoping that there is a much easier way than that. This is supposed to be from a web page and there is no web view involved. 回答1: Yes, but if it's not installed on the system you'll run into an ActivityNotFoundException. If it's not

Android browser bottom control bar overlays content

╄→尐↘猪︶ㄣ 提交于 2021-01-27 05:50:44
问题 I have a fix positioned element at the bottom of the screen which works perfectly except for the Android browser where the bottom control bar overlays my element. It doesn't even trigger the window resize event to try and work with that. iOS Safari also has the bottom control bar but it pushes my element correctly and it doesn't overlay it. I'm open to any suggestion. 回答1: You can try the new display: fullscreen https://developers.google.com/web/updates/2017/04/nic58#fullscreen When

onHeadingChange(event) getting single value for geometrically opposite positions

旧街凉风 提交于 2020-08-09 07:10:23
问题 I am working on android device orientation and getting same values of event.alpha (270) in following positions as shared in image. i am using following code: // called on device orientation change function onHeadingChange(event) { var heading = event.alpha; if (typeof event.webkitCompassHeading !== "undefined") { heading = event.webkitCompassHeading; //iOS non-standard } if (typeof heading !== "undefined" && heading !== null) { alert("heading:"+ heading); } } 来源: https://stackoverflow.com

Get Last Visited URL in Chrome and other browser's

一笑奈何 提交于 2020-03-13 05:27:20
问题 I want to get last visited URL in chrome and other browser's. I am able to get Last URL in android Native browser. I use following code for this - Cursor cur = getContentResolver().query(Browser.BOOKMARKS_URI, new String[] { Browser.BookmarkColumns.URL }, null, null, BookmarkColumns.DATE + " DESC"); if (cur != null && cur.getCount() > 0) { cur.moveToFirst(); String url = cur.getString(cur .getColumnIndex(Browser.BookmarkColumns.URL)); cur.close(); return url; } else { if (cur != null) { cur

Get Last Visited URL in Chrome and other browser's

99封情书 提交于 2020-03-13 05:26:23
问题 I want to get last visited URL in chrome and other browser's. I am able to get Last URL in android Native browser. I use following code for this - Cursor cur = getContentResolver().query(Browser.BOOKMARKS_URI, new String[] { Browser.BookmarkColumns.URL }, null, null, BookmarkColumns.DATE + " DESC"); if (cur != null && cur.getCount() > 0) { cur.moveToFirst(); String url = cur.getString(cur .getColumnIndex(Browser.BookmarkColumns.URL)); cur.close(); return url; } else { if (cur != null) { cur

Android app opening browser in the same tab?

半腔热情 提交于 2020-02-28 23:33:38
问题 I'm finding this hard to explain, but i'll do my best. I have an app that opens the browser (firefox) and send information from that app to the webpage as a php variable, the problem i have is that i am doing this quite a lot, and everytime it opens the browser its opening a new tab. I know there is no way to close a tab using javascript etc, so is there a way to ensure it always opens into the same current tab so i dont end up with several open at once. I dont want to keep having to close

Is there a kind of Firebug or JavaScript console debug for Android? [closed]

牧云@^-^@ 提交于 2020-01-28 13:21:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm developing a website for mobile. It works on Firefox desktop. It works on iPhone, but when I press a buton on Android 2.x (and maybe lower). my JavaScript code crashes or what else... Can I get access to the logger or JavaScript console for those devices? The better should be a kind of Firebug application.

How to detect the stock Android browser

霸气de小男生 提交于 2020-01-19 06:52:06
问题 Navigating to http://whatsmyuseragent.com/ shows me my stock Android browser on my Galaxy Nexus running 4.2.1 has the user agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24 There is nothing in this user agent that allows me to uniquely detect that it is a stock Android browser. The Chrome for Android app at least has android in the UA. Is there any way for me to detect the stock Android app? 回答1: var navU = navigator.userAgent; //

Javascript AJAX Click event sometimes not working in Android native browser

两盒软妹~` 提交于 2020-01-06 08:30:07
问题 While testing my application with different devices I found one weird problem in android browser in android phones. I have almost same design for PC and and mobile, in PC and in iPhone and mobile Chrome browser its working fine. <a type="cart_type" onclick="ajax_submit_for_new_order_session(81, true); return false;" id="81" href="javascript:void(0)"> <i class="icon-plus-sign"></i></a> Above is the code for my anchor tag, When I click on this anchor tag sometimes its calling the specified

How can I catch event ExitFullScreen of a video?

北城以北 提交于 2020-01-04 02:34:41
问题 How can I catch event ExitFullScreen of a video ? I need to redraw the page when I exit the FullScreen of tag video. 回答1: Listen to the fullscreenchange event: document.addEventListener("fullscreenchange", function () { console.log(document.fullscreen); }, false); document.addEventListener("mozfullscreenchange", function () { console.log(document.mozFullScreen); }, false); document.addEventListener("webkitfullscreenchange", function () { console.log(document.webkitIsFullScreen); }, false); 来源