📌  相关文章
📜  以编程方式在 android 中共享位置 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:07.009000             🧑  作者: Mango

代码示例1
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..."));