Sam*_*ama 4 android google-search-api google-image-search
我想知道如何使用Google图像搜索查询启动浏览器"按文本搜索图像".例如,用户可以选择某个单词或短语并单击按钮,该活动将使用Google图像搜索查询启动浏览器.
提前致谢.
像这样创建URL:
String URLString = "https://www.google.com/search?hl=en&site=imghp&tbm=isch&source=hp&q="+TestString;
Run Code Online (Sandbox Code Playgroud)
像这样启动它:
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(URLString));
startActivity(i);
Run Code Online (Sandbox Code Playgroud)
确保您的TestString是URL安全的
| 归档时间: |
|
| 查看次数: |
3124 次 |
| 最近记录: |