【发布时间】:2017-06-29 14:48:17
【问题描述】:
这是我用来在按下按钮时将链接发送给同一聊天应用程序中的其他人的代码。
当按下按钮时,如何在同一个聊天应用程序中获取当前位置作为 google maps url?
TextView link = (TextView) findViewById(R.id.TextView1);
String linkText = "https://www.google.co.in/maps?geo:0,0?q=my+street+address?geo:latitude,longitude";
mChatApplication.newLocalUserMessage(linkText);
link.setText(linkText);
link.setMovementMethod(LinkMovementMethod.getInstance());
【问题讨论】:
-
我们不知道
mChatApplication是什么...请在edit 中显示minimal reproducible example 和您的问题
标签: android google-maps android-gps