80,350
社区成员
发帖
与我相关
我的任务
分享
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(getString(R.string.update_dialog_tittle));
builder.setMessage(updateInfo.getDescription());
builder.setCancelable(false);
updateinfo是javabean,是通过读取网站xml获取的updateInfo.setDescription(parser.nextText());
网站的xml为<?xml version="1.0" encoding="UTF-8"?>
<updateInfo>
<version>1.2</version>
<url>http://localhost:8080/test.apk</url>
<description>更新说明\n1:测试\n2:测试\n3测试\n4:测试</description>
</updateInfo>