我想启动一些接受地理坐标的应用程序(http://developer.android.com/training/sharing/send.html)。问题是他们想要不同的 URI。
示例(伪代码):
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
intent.addSomeUri("http://maps.google.com/maps/?daddr="+myAddress);
intent.addSomeUri("http://someotherservice.com/?coordinates="+myLat+":"+myLng+"&address=myAddress");
编辑:当然,目标是让两个应用程序出现在同一个活动选择器中。
我怎样才能实现它?