如何为Android开发自己的浏览器?如何解析 HTML、JS 和 HTML公司?
正如标题所示,我正在考虑为 Android 设备开发自己的浏览器。
在开始创建我的软件架构之前,我的第一个想法是知道我有什么样的可能性。是否有任何(开放的?)浏览器引擎可以包含到您的库中并重用它们? (Android Market中有一些未知的浏览器,我无法想象他们实现了解析)。
此外:如果有像我之前描述的那样,是否可以修改(或“微调”)渲染方法?我想这是最有趣的一点之一。
结束这个问题并抓住其他情况:开始的替代方法是什么? [我想这不仅对于移动开发人员来说很有趣,对于桌面软件开发人员来说也很有趣]
这个问题的缩写版本:我想开发自己的 Android 浏览器。如何开始?
Like the title says, I am thinking about developing my own browser for Android devices.
My first thought is to know what kind of possibilities I have, before I begin creating my software architecture. Are there any (open?) Browser Engines you could include into your library and reuse them?
(There are some unknown browsers in the Android Market and I can't imagine they implemented the parsing).
Furthermore: If there IS something like I've described before, is it possible to modify (or "fine tune") the render methods? This is one of the most interesting points I guess.
And to end this question and catch the else-case: What would be the alternative way to begin?
[I guess this is not only interesting to know for mobile developers, also for desktop software developers]
Abbreviated version of this question: I want to develop my own Android Browser. How to begin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 WebKit 开源项目。 Android SDK 有一个 WebKit 包,它提供了工具和实用程序用于浏览网页。
这是一篇讨论 Android 的 WebKit 移动实现的(旧)文章:Android 使用 WebKit
Check out the WebKit Open Source Project. The Android SDK has a WebKit package which provides tools and utilities for browsing the web.
Here is an (old) article discussing Android's mobile implementation of WebKit: Android Uses WebKit
对于您自己的浏览器来说,最简单的起点是查看标准 Android 浏览器的代码。
它都是开源的,所以你可以在这里查看:
https://android.googlesource.com/platform/packages/apps/Browser
The easiest starting point for your own browser would be to check out the standard Android browser's code.
It's all open source, so you can check it out here:
https://android.googlesource.com/platform/packages/apps/Browser