【发布时间】:2015-04-28 03:40:14
【问题描述】:
我一直在尝试通过 whatsapp 共享意图发送位置,到目前为止我的代码:
String uri = "geo:" + currentLoc.getLatitude() + "," +currentLoc.getLongitude() + "?q=" + currentLoc.getLatitude() + "," + currentLoc.getLongitude();
Intent i=new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(i);
问题是当应用程序选择器打开时,它只显示“谷歌地图”和“位智”。如何修改它,以便我可以通过许多其他支持位置的应用(如 whatsapp 或 facebook)发送它?
【问题讨论】:
-
告诉我this 是否适合您?
标签: android android-intent location