android-browser

Android: How to store array of strings in SharedPreferences for android

99封情书 提交于 2019-12-18 13:35:19
问题 I'm building an app which searches the web using search engine. I have one edittext in my app from which user will search the web. I want to save the search keywords just like browser history does. I'm able to save and display it with the last keyword but I can't increase the number of searches result. I want to display the last 5 searhes. Here is my code : public class MainActivity extends Activity implements OnClickListener { Button insert; EditText edt; TextView txt1, txt2, txt3, txt4,

How to continue using Browser Bookmark Changes in Android 6.0 (API 23)

让人想犯罪 __ 提交于 2019-12-18 12:35:59
问题 In my app, I have been using some of these function that are coming up as unknown when using Android 6.0 ( buildToolsVersion "23.0.1" ), the functions are: Browser.getAllVisitedUrls(getContentResolver()); , BookmarkColumns.URL , etc. How can I use the same functions going forward with Android 6.0. In the list of things that have changed in Android 6.0, I see the following: Browser Bookmark Changes This release removes support for global bookmarks. The android.provider.Browser.getAllBookmarks(

Android browser - remove outline border when anchor is focused

我怕爱的太早我们不能终老 提交于 2019-12-18 11:37:45
问题 I am using on my Android app a webview which loades an external page. It has a few anchors ( <a> tags). When I press on it, yellow border appears. How can I prevent it and remove this border ? I've tried following tricks: // jQuery $("a").focus(function(){ $(this).attr("hideFocus", "hideFocus"); }); // CSS a, :focus { outline: none; } but with no success. Thanks ! 回答1: Set the CSS property -webkit-tap-highlight-color as follows: * { -webkit-tap-highlight-color: rgba(0,0,0,0); } Note: setting

changePage “jumps” back to old page

浪尽此生 提交于 2019-12-18 03:04:33
问题 I've a big problem with a jQuery Mobile Application: I'm using custom functions (they are triggered by onClick) to switch the page with currentPage. It only happens on Android-Devices on sites in which has changed (due to ajax requests) with the integrated browser. iOS and Chrome works nice. After clicking on an element, the animation started but just before it ends, it switches back to the old page. After a half second, it switches back to the new. I made a movie of the bug here: http://www

Android: The type java.lang.Enum cannot be resolved

牧云@^-^@ 提交于 2019-12-17 20:27:32
问题 I downloaded Android's Browser project (from git) and imported it to Eclipse. I cannot build it however because of the following error: The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files Now... this is a development environment that has been working very well for other projects: Windows 7 Ultimate 64-bit. JDK 64-bit (jdk-6u23-windows-x64.exe installed.) Eclipse Classic 3.6 64-bit (eclipse-SDK-3.6.1-win32-x86_64.zip) Android 2.3 SDK Starter

Galaxy S4 stock browser CSS3 border-radius support?

本小妞迷上赌 提交于 2019-12-17 19:58:38
问题 This is a very specific question, that I can't find any documented evidence to support, but have rather a lot of empirical evidence, although only based on a single phone. The single Galaxy S4 that we have available in the office doesn't appear to have support for the border-radius property in it's stock browser. I've tested several different websites, and have tried all different browser versions of the property (webkit, moz, etc), and it just don't seem to support it. Because we only have 1

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

强颜欢笑 提交于 2019-12-17 19:29:16
问题 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 devices, trying to use bookmarks leads to java.lang.IllegalArgumentException: Unknown URL content://browser/bookmarks I now understand that Boookmark Uri can be different than the AOSP default value (i.e. "content://browser/bookmarks"). Question: How

can we get chrome browsing history/bookmarks in our android app

爷,独闯天下 提交于 2019-12-17 07:15:44
问题 can we get chrome browsing history/bookmarks like we get in default browser using READ_HISTORY_BOOKMARKS permission? PS:I Just want to know is it possible? 回答1: Yes it is very much possible. Use this uri: content://com.android.chrome.browser/bookmarks instead of Browser.BOOKMARKS_URI String[] proj = new String[] { Browser.BookmarkColumns.TITLE,Browser.BookmarkColumns.URL }; Uri uriCustom = Uri.parse("content://com.android.chrome.browser/bookmarks"); String sel = Browser.BookmarkColumns

can we get chrome browsing history/bookmarks in our android app

寵の児 提交于 2019-12-17 07:15:15
问题 can we get chrome browsing history/bookmarks like we get in default browser using READ_HISTORY_BOOKMARKS permission? PS:I Just want to know is it possible? 回答1: Yes it is very much possible. Use this uri: content://com.android.chrome.browser/bookmarks instead of Browser.BOOKMARKS_URI String[] proj = new String[] { Browser.BookmarkColumns.TITLE,Browser.BookmarkColumns.URL }; Uri uriCustom = Uri.parse("content://com.android.chrome.browser/bookmarks"); String sel = Browser.BookmarkColumns

GAE Channel API : connection doesn't open on Android browser

依然范特西╮ 提交于 2019-12-13 06:41:25
问题 I'm testing Channel API in a basic test project. When Using chrome on desktop, the connection opens (an alert window appears) But when using android browser, the connection doesn't open, nothing happens. Actually, it has worked two or three times, but just the connection; and now, nothing. Below the code. <html> <head> <script src='/_ah/channel/jsapi'></script> </head> <body> <script type="text/javascript"> initialize = function() { var chat_token = '<%=request.getParameter("token")%>'; var