android编程 xml文件读取和写入

               


android编程:xml文件读取和写入


本文博客链接:http://blog.csdn.net/jdh99,作者:jdh,转载请注明.


环境:

主机:WIN8

开发环境:Eclipse


说明:

1.打开sd卡中的xml文件,如果不存在,这新建一个,并写入默认配置

2.读取xml文件


xml文件格式:

<?xml version="1.0" encoding="UTF-8" standalone="true"?>-<config><title>远程视频会见系统</title><local_port>12600</local_port><schedule_service_ip>10.58.1.59</schedule_service_ip><schedule_service_port>12601</schedule_service_port></config>

源代码:

猜你喜欢

转载自blog.csdn.net/qq_44925357/article/details/89789594
今日推荐