📅  最后修改于: 2022-03-11 14:52:07.009000             🧑  作者: Mango
String uri = "https://www.google.com/maps/?q=" + latitude+ "," +longitude ;
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, uri);
startActivity(Intent.createChooser(sharingIntent, "Share in..."));