Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/202.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android共享意图上的共享位置_Android_Android Intent_Geolocation_Location_Share - Fatal编程技术网

android共享意图上的共享位置

android共享意图上的共享位置,android,android-intent,geolocation,location,share,Android,Android Intent,Geolocation,Location,Share,我想共享一个附加到我的共享意图的位置。可能吗 类似于此,但添加位置信息: Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_TEXT, "The status update text"); startActivity(Intent.createChooser(intent, "Dialog title text")); 谢谢。您可以

我想共享一个附加到我的共享意图的位置。可能吗

类似于此,但添加位置信息:

Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, "The status update text");
startActivity(Intent.createChooser(intent, "Dialog title text"));

谢谢。

您可以将您的位置数据作为邮件文本的一部分,放在
额外文本中

或者,欢迎你发明一个新的额外的(例如,
extra\u LOCATION
),将位置数据放在那里,然后说服世界上所有的Android开发者在执行响应
动作发送的活动时在相关的地方使用它


但是,除了这两个选项之外,
ACTION\u SEND
不支持任何与位置相关的内容。

您想在哪里共享?你可以把所有实现包裹的东西都放进去检查一下