Is there a Bookmark Contentprovider for Chrome to get browser history

瘦欲@ 提交于 2019-12-08 02:52:00

问题


I have an app that use ContentResolver to get the Browser history data with Browser.BOOKMARKS_URI. It works well with the stock Android browser. Now Google is moving to Chrome as the default browser. Does Chrome provide similar Contentprovider? I searched all over the web but could not find any information on this. Is there a doc for Chrome on Android released by Google yet? Thanks in advance!


回答1:


https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-bugs/ThAoOAYOPCk indicates that this should now be possible.

If Chrome is the system default browser (which it should be in Nexus7) the BOOKMARKS_URI authority should automagically resolove Chrome's bookmarks. If it is not the default https://code.google.com/p/chromium/issues/detail?id=138755 indicates that the content-provider URI is content://com.android.chrome.browser/bookmarks



来源:https://stackoverflow.com/questions/11919270/is-there-a-bookmark-contentprovider-for-chrome-to-get-browser-history

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!