【问题标题】:Android Intent To Open Google Maps Application At Explore Nearby ScreenAndroid 意图在“探索附近”屏幕上打开 Google 地图应用程序
【发布时间】:2013-11-20 13:40:50
【问题描述】:

我想直接在“探索附近”屏幕上打开 Google 地图应用程序,例如在这里吃这个截图

https://dl.dropboxusercontent.com/u/14944627/Google%20Maps%20Application%20Image.png

我可以使用以下代码打开谷歌地图应用程序

 String uri = "http://maps.google.com/";
 Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
 intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
 startActivity(intent);

但我希望它直接进入“探索附近”屏幕,通过点击搜索栏 > 然后点击探索附近 > 吃图标。

我只想通过打开谷歌地图应用程序然后点击搜索栏 > 吃来自动执行点击步骤。这样探索附近吃谷歌地图页面就会显示给用户......这可能吗?

提前致谢。

【问题讨论】:

  • 你找到答案了吗?

标签: android google-maps android-intent


【解决方案1】:

是的,您可以使用Google Places API

请将您的数据添加到以下 URL 并将其传递给您的意图。

字符串网址= "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=AddYourOwnKeyHere"

您可以查看以下 URL 以获取文档:https://developers.google.com/places/documentation/search

【讨论】:

  • 嗨,我试过了,但它只是正常打开应用程序,而不是在地方吃饭页面。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-07-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多