如何继续使用Android 6.0(API 23)中的浏览器书签更改 [英] How to continue using Browser Bookmark Changes in Android 6.0 (API 23)

查看:216
本文介绍了如何继续使用Android 6.0(API 23)中的浏览器书签更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,我一直在使用其中一些功能,这些功能在使用Android 6.0(buildToolsVersion "23.0.1")时显示为unknown,这些功能是:Browser.getAllVisitedUrls(getContentResolver());BookmarkColumns.URL等.

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.

我该如何使用与Android 6.0相同的功能.

How can I use the same functions going forward with Android 6.0.

Android 6.0中已更改的事物列表中,,我看到以下内容:

浏览器书签更改

此版本删除了对全局书签的支持. android.provider.Browser.getAllBookmarks()和android.provider.Browser.saveBookmark()方法现已删除.同样,将删除READ_HISTORY_BOOKMARKS和WRITE_HISTORY_BOOKMARKS权限.如果您的应用定位到Android 6.0(API级别23)或更高版本,请不要访问全局提供商的书签,也不要使用书签权限.相反,您的应用程序应在内部存储书签数据.

This release removes support for global bookmarks. The android.provider.Browser.getAllBookmarks() and android.provider.Browser.saveBookmark() methods are now removed. Likewise, the READ_HISTORY_BOOKMARKS and WRITE_HISTORY_BOOKMARKS permissions are removed. If your app targets Android 6.0 (API level 23) or higher, don't access bookmarks from the global provider or use the bookmark permissions. Instead, your app should store bookmarks data internally.

这到底是什么意思? **Instead, your app should store bookmarks data internally** ???

What does this exactly mean? **Instead, your app should store bookmarks data internally**???

我正在访问使用Chrome浏览器应用访问的网站的历史记录(当然,具有明确的用户许可),该如何继续呢?

I was accessing the history of websites (with explicit user permission of course) visited using the Chrome Browser app, how to continue doing that?

推荐答案

我该如何使用与Android 6.0相同的功能.

How can I use the same functions going forward with Android 6.0.

就Android SDK而言,您不能.

You can't, in terms of the Android SDK.

这到底是什么意思? 相反,您的应用应在内部存储书签数据" ???

What does this exactly mean? "Instead, your app should store bookmarks data internally"???

如果您使用书签提供程序来存储自己的书签(例如,您编写了自己的Web浏览器),请将书签存储在自己的数据存储区(例如,SQLite数据库)中.

If you were using the bookmarks provider for storing your own bookmarks (e.g., you wrote your own Web browser), store your bookmarks in your own data store (e.g., a SQLite database).

(并且,理想情况下,现在编写一些代码来完成该任务并交付它,这样,那些设备升级到Android 6.0的用户就不会被锁定在您放入Bookmarks提供程序的书签之外)

(and, ideally, write some code to do that now, and ship it, so users whose devices are upgrading to Android 6.0 are not locked out of the bookmarks you put into the Bookmarks provider)

是否意味着无法获取Chrome应用的浏览器历史记录?

so this means that getting Browser history of Chrome app is not possible?

至少不是通过Android SDK的Browser提供程序.我不知道Chrome小组是否会通过其他一些已记录并受支持的公共API公开浏览器的历史记录.任何其他Android Web浏览器(例如Firefox)也是如此.

At least not through the Android SDK's Browser provider. I have no idea if the Chrome team is exposing the browser history through some other documented and supported public API. The same holds true for any other Android Web browser (e.g., Firefox).

这篇关于如何继续使用Android 6.0(API 23)中的浏览器书签更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆