在没有互联网的情况下离线android(使用GPS /网络)时获取设备位置坐标

时间:2019-04-28 17:43:00

标签: android locationmanager

我已经尝试了许多方法来达到此要求,但是每次我什么都没得到时。 i关注了All the examples tutorials in here,但始终from subprocess import Popen, PIPE def run_R(file): # COMMAND WITH ARGUMENTS cmd = ["Rscript", "myR_script.R", file] p = Popen(cmd, cwd="/path/to/folder/of/my_script.R/" stdin=PIPE, stdout=PIPE, stderr=PIPE) output, error = p.communicate() # PRINT R CONSOLE OUTPUT (ERROR OR NOT) if p.returncode == 0: print('R OUTPUT:\n {0}'.format(output)) else: print('R ERROR:\n {0}'.format(error)) 为空。有什么办法可以满足我的要求。

0 个答案:

没有答案
相关问题