一个简单的图像搜索应用
问题描述:
我想开发一个简单的应用程序,这将一个简单的图像搜索应用
- 与关键字搜索图像
- 浏览图像
- 保存图像
如果我能做到它与谷歌,它会更好。
到目前为止,我发现这个谷歌搜索后:
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);
我没有做编码的部分呢。 现在的问题是,这是一个正确的方式根据我想要的应用程序? 主要是,任何教程都会对我有很大的帮助。
这是很大的帮助。我要去试试:) – Shoshi
@Shoshi我的荣幸,请接受答案,如果它已经解决了你的问题:) –
我接受了你的回答:) – Shoshi