创建为Android定制的浏览器浏览器、Android

2023-09-06 21:46:51 作者:他是我不能拥抱的太阳

我在开发Android的浏览器。我只需要创建一个搜索编辑框有历史记录按钮。

I'm developing a browser for android. I simply need to create one search editbox with a history button.

当用户点击历史按钮,最多五个最近访问过的网页应该是presented。

When the user clicks 'history' button, up to five recent visited webpages should be presented.

我不知道从哪里开始......因为我对如何做到这一点不知道...

I don't know where to start... Because I have no idea on how to do this...

推荐答案

您不需要为定制的浏览器。你可以在你的应用程序中嵌入的WebView。

You don't need a custom browser for that. You can embed a WebView in your app.

http://developer.android.com/reference/android/webkit/ WebView.html

在此,你可以从历史记录使用JavaScript获得最后的5个页面,并显示这些网址。

In this, you can get last 5 pages from History using JavaScript and display those URLs.