从 Adobe AIR 应用程序读取浏览器收藏夹(链接)
是否可以从 AIR 应用程序内获取对收藏站点(已使用 Android 的本机浏览器设置)的读取访问权限?我找不到这方面的 API。此外,我没有找到任何有关浏览 Android 文件系统的信息。好像收藏夹文件夹不存在。
Is it possible to get read access to favorited sites (that have been set using Android's native browser) from within an AIR-application? I could not find an API for this. Furthermore, I didn't find anything about browsing android's filesystem. It seems something like a favorites folder does not exist.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以通过 Android Content Provider api 访问它。具体来说,它位于 Android API 中: http://developer.android .com/reference/android/provider/Browser.html#BOOKMARKS_URI 这是内容提供程序开发人员指南:http://developer.android.com/guide/topics/providers/content-providers .html
本教程具体展示了如何实际使用书签:http://mobileorchard.com/android-app-development-android-content-providers/
要从 AIR 访问此内容,我认为您需要编写一个 NativeExtension。以下是一些示例: http://www.adobe.com/ devnet/air/native-extensions-for-air.html 但也许您可以通过服务或其他方式直接从 AIR 访问该 URI?我对原生安卓开发不多,所以我不确定。
Yes, you can access it through the Android Content Provider api. Specifically, it's right here in the Android API: http://developer.android.com/reference/android/provider/Browser.html#BOOKMARKS_URI here is the Content Provider developer guide: http://developer.android.com/guide/topics/providers/content-providers.html
This tutorial shows how to actually work with bookmarks specifically: http://mobileorchard.com/android-app-development-android-content-providers/
To access this from AIR I thinkyou'll need to write a NativeExtension. Here are some examples: http://www.adobe.com/devnet/air/native-extensions-for-air.html but maybe you can access that URI directly from AIR with a service or something? I don't do much native android so I don't know for sure.