该软件支持导入导出手机通讯录与短信,可以通过导出进行备份,还可以直接阅读导出信息。导出文件存储在手机和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+"
");
}
}
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+="
号码:"+infos.get(i).getPhoneNumber();
string+="
日期:"+infos.get(i).getDate();
string+="
消息:"+infos.get(i).getSmsbody();
string+="
====================================
";
realString+=realinfos.get(i).getPhoneNumber()+"
";
realString+=realinfos.get(i).getSmsbody()+"
";
realString+= ".!@#$%^&*().[].yyqf
" + realinfos.get(i).getDate()+"
";
realString+=realinfos.get(i).getType()+"
";
}
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();
}
未经书面许可,严禁将本网内容作为AI训练资源。
33台词PC版 0.1
文件批量改名Bulk Rename Utility v3.4.1 中文绿色版
PDF快转(SanPDF) v2.0.6.66 官方版
菲菲更名宝贝之得意非凡FFRenamePro V4.0专业版
查找大文件(WizTree) v3.35 绿色版
文件比较查重工具WinMerge v2.16.8.0 中文版
Windows文件管理器(WinNc) v9.4.0.0 官方安装版
文件压缩档案提取(Explzh) v8.18 官方版
WinMerge v2.16.7.0 官方多语中文版
UltraCompare文件比较工具汉化修正中文版 V21.10.0.20免费64位注册码绿色版
文档自动转换工具BlackIce BiBatchConverter v4.80.632 官方版
批量文本文件处理器 V1.4绿色版
MAXHUB文档客户端 v1.3.1官方PC版
文件校验工具(EF CheckSum Manager) v20.02 官方版
全速pdf转换成excel转换器 v7.8.0.0官方版