
该软件支持导入导出手机通讯录与短信,可以通过导出进行备份,还可以直接阅读导出信息。导出文件存储在手机和SD卡里双重保险。
1、添加备忘录导入导出
2、优化导入导出时间
3、添加更多导出选项
4、支持网络化传送导出文件,互相导入


导出通讯录
[java] view plaincopy
public void GetTongXun() throws IOException
{
ContentResolver resolver = this.getContentResolver();
Uri uri = Uri.parse("content://com.android.contacts/contacts");
Cursor cursor = resolver.query(uri, new String[]{Data._ID}, null, null, null);
File file = CreatFile(dir+"通讯录.txt");
FileOutputStream outputStream = new FileOutputStream(file);
FileOutputStream fos = null;
fos = openFileOutput("通讯录.txt",Context.MODE_WORLD_READABLE + Context.MODE_WORLD_WRITEABLE);
while(cursor.moveToNext())
{
StringBuilder buf = new StringBuilder();
int id = cursor.getInt(0);//获得id并且在data中寻找数据
uri = Uri.parse("content://com.android.contacts/contacts/"+id+"/data"); //如果要获得data表中某个id对应的数据,则URI为content://com.android.contacts/contacts/#/data
Cursor cursor2 = resolver.query(uri, new String[]{Data.DATA1,Data.MIMETYPE,Data.DATA10}, null,null, null); //data1存储各个记录的总数据,mimetype存放记录的类型,如电话、email等
String phone = null;
while(cursor2.moveToNext())
{
String data = cursor2.getString(cursor2.getColumnIndex("data1"));
if(cursor2.getString(cursor2.getColumnIndex("mimetype")).equals("vnd.android.cursor.item/name") && cursor2.getString(cursor2.getColumnIndex("data10")).equals("2") ){ //如果是名字
buf.append(data);
if (phone != null) buf.append(phone);
}
else if(cursor2.getString(cursor2.getColumnIndex("mimetype")).equals("vnd.android.cursor.item/phone_v2")){//如果是电话
phone = new String(" "+data+"\n");
}
}
String str = buf.toString();
try {
outputStream.write(str.getBytes());
fos.write(str.getBytes());
} catch (IOException ex) {}
}
try {
outputStream.close();
fos.close();
} catch (IOException ex) {}
new AlertDialog.Builder(this).setMessage("成功导出通讯录!").show();
}
导出短信
[java] view plaincopy
public void OutDuanxin() throws IOException
{
Uri uri = Uri.parse("content://sms/");
smsContent sc = new smsContent(this,uri);
List<smsInfo> infos = sc.getSmsInfo();
List<smsInfo> realinfos = sc.getRealSmsInfo();
File file = CreatFile(dir+"短信.txt");
FileOutputStream outputStream = new FileOutputStream(file);
FileOutputStream fos = null;
fos = openFileOutput("短信.txt",Context.MODE_WORLD_READABLE + Context.MODE_WORLD_WRITEABLE);
File realfileFile = CreatFile(dir+"duanxin.yyqf");
FileOutputStream realoutputStream = new FileOutputStream(realfileFile);
FileOutputStream realfos = null;
realfos = openFileOutput("duanxin.yyqf",Context.MODE_WORLD_READABLE + Context.MODE_WORLD_WRITEABLE);
String string = new String();
String realString = new String();
for (int i=0;i<infos.size();i++)
{
string+=infos.get(i).getName();
string+="\n号码:"+infos.get(i).getPhoneNumber();
string+="\n日期:"+infos.get(i).getDate();
string+="\n消息:"+infos.get(i).getSmsbody();
string+="\n====================================\n";
realString+=realinfos.get(i).getPhoneNumber()+"\n";
realString+=realinfos.get(i).getSmsbody()+"\n";
realString+= ".!@#$%^&*().[].yyqf\n" + realinfos.get(i).getDate()+"\n";
realString+=realinfos.get(i).getType()+"\n";
}
try {
fos.write(string.getBytes());
outputStream.write(string.getBytes());
realfos.write(realString.getBytes());
realoutputStream.write(realString.getBytes());
} catch (Exception e) {}
try {
outputStream.close();
fos.close();
realfos.close();
realoutputStream.close();
} catch (IOException ex) {}
new AlertDialog.Builder(this).setIcon(android.R.drawable.ic_dialog_info).setMessage("成功导出短信!").show();
}
中文名:安卓资料导出备份
版本:1.0
包名:com.yyqf.myfirstapp
MD5值:06cdebf0afbf63f41e139022726a12a3
备案号:
开发者其他应用

腾讯元宝AI手机端2026安卓免费版125.1M25人在玩腾讯元宝AI手机端,腾讯元宝AI产品,提供办公,学习,生活娱乐等领域的实用辅助功能,借助最新AI技术来生成用户所需要的文章,图片以及视频产品,腾讯元宝AI客户
下载
ace云手机app最新版23.0M0人在玩ace云手机app最新版是一款24小时不间断运行的云端虚拟手机软件。它支持在线运行云端游戏、虚拟多开,配合各种框架模块使用。平台内置丰富云游戏,如王牌战争、王
下载
壁纸引擎wallpaper engine手机版官方下载119.4M219人在玩一按衣服就会变透明的壁纸安装包就是一款最近大家都在追的动态壁纸软件--wallpaper壁纸引擎手机版,这个之前是pc端的一个壁纸引擎,现在有超级厉害的玩家移植到手机上了
下载
谷歌邮箱安卓客户端183.4M71人在玩谷歌邮箱安卓客户端是谷歌旗下的安卓手机邮箱客户端,谷歌Gmail邮箱支持国内手机号码注册,,Gmail是Google的免费网络邮件服务。可以*保留重要的邮件、文件和图片
下载
Dolphin模拟器安卓版汉化版19.5M267人在玩Dolphin模拟器安卓版是一款可以让你在安卓手机上运行wii游戏的模拟器,wiiu是任天堂新推出的HD家用游戏机,很多玩家对这个平台的游戏非常感兴趣奈何没有闲钱去买游戏机。
下载
腾讯元宝app官方下载2026最新版125.1M35人在玩腾讯元宝app官方下载2026最新版是基于腾讯混元大模型的一款ai应用,作为一款全能ai助手,它集成了ai搜索、ai解析、ai写作、ai绘画、ai翻译等诸多功能,无论是旅游、工作、学习还是生
下载
酷安app官方版本97.7M2719人在玩酷安市场app下载官方版本终于来啦,作为国内最有特色的应用市场门户,终于迎来了最新v12.0版本,在这个版本中不管是应用界面还是应用功能都大有改变,用惯了老版本,大家初期可能不太适应。
下载
steamlink app官方下载2026最新版471KB186人在玩steamlinkapp是在steam在近期推出的非常不错的串流系列软件,现在你能在自己家的手机上完美体验到最棒的串流服务,相信不少的小伙伴都会非常想体验下,赶紧下载最
下载
阿里网盘(阿里云盘)153.0M25792人在玩阿里网盘app下载安装,阿里推出的网盘业务,与百度网盘相竞争,阿里网盘app为其手机客户端产品,阿里网盘拥有更高的免费容量,更快的下载速度,并且网盘资源通用。
下载
4399游戏盒安全版63.3M29512人在玩4399游戏盒安全下载安装最新版本是4399手游中心推出的一款手游客户端,其集游戏资讯、游戏搜索、游戏下载等媒体资讯于一体,拥有超过10W款手游供你免费下载,还有大量的手游攻略资讯查询
下载