Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/228.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中读写gpx文件_Android_Gps_Gpx - Fatal编程技术网

在android中读写gpx文件

在android中读写gpx文件,android,gps,gpx,Android,Gps,Gpx,我正在寻找用android写和读文件的方法。我必须编写一个可以将经度和纬度写入gpx文件的应用程序,然后我必须从gpx文件中读取经度和纬度来重新创建用户的方式。任何人都可以告诉我怎么做。非常感谢 要读取和写入gpx文件,您应该只知道文件结构,请参见以下链接:fr.wikipedia.org/wiki/gpx\u28format\u de\u fichier%29 以下是阅读gpx文件的教程: 您也可以使用gpxparser库:您可以使用库 编写GPX文件的示例 GPX gpx = new GPX

我正在寻找用android写和读文件的方法。我必须编写一个可以将经度和纬度写入gpx文件的应用程序,然后我必须从gpx文件中读取经度和纬度来重新创建用户的方式。任何人都可以告诉我怎么做。非常感谢

要读取和写入gpx文件,您应该只知道文件结构,请参见以下链接:fr.wikipedia.org/wiki/gpx\u28format\u de\u fichier%29

以下是阅读gpx文件的教程:

您也可以使用gpxparser库:

您可以使用库

编写GPX文件的示例

GPX gpx = new GPX();
GPXParser gpxParser = new GPXParser();
FileOutputStream out = new FileOutputStream(fullPath);
gpxParser.writeGPX(gpx, out);
out.close();

是任何在android中编写GPX文件的库。