一个简单的图像搜索应用 [英] A simple image search app
本文介绍了一个简单的图像搜索应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想开发一个简单的应用程序,这将
I want to develop a simple application, that will
- 搜索关键词中的图像
- 浏览图像
- 保存图像
如果我能与谷歌做到这一点,它会更好。
if i can do it with Google, it would be better.
到目前为止,我发现这个谷歌搜索后:
so far i found this after Googling:
try {
Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);
String term = editText.getText().toString();
intent.putExtra(SearchManager.QUERY, term);
startActivity(intent);
} catch (Exception ex) {
}
和
intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
"http://images.google.com/search?
num=10&hl=en&site=&tbm=isch&source=hp
&biw=1366&bih=667&q=cars&oq=cars& // here q='My_search_text'
gs_l=img.3..0l10.748.1058.0.1306.
4.4.0.0.0.0.165.209.2j1.3.0...0.0
...1ac.1.8RNsNEqlcZc"));
startActivity(intent);
我没有做编码的部分呢。
现在的问题是,这是一个正确的方式按照我想要的应用程序?
主要是,任何教程将是对我有很大的帮助。
i have not done the coding part yet. now the question is, is this a right way the application according to what i want? mainly, any tutorial would be a great help for me.
推荐答案
下面是一些很好的例子codeS,你可以采取的帮助。
Here are some nice Example Codes that you can take help from.
我希望这能解决你的问题。
I hope this solves your problem.
这篇关于一个简单的图像搜索应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文