本文介绍了创建为Android定制的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在开发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.
在此,你可以从历史记录使用JavaScript获得最后的5个页面,并显示这些网址。
In this, you can get last 5 pages from History using JavaScript and display those URLs.
这篇关于创建为Android定制的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!