解决方案
10
popupwindow
10
这个可以用弹出框,做出来,
AlertDialog.Builder dialog = new AlertDialog.Builder(
getActivity());
dialog.setMessage(“版本信息”);
dialog.setNeutralButton(“取消”, null);
dialog.setPositiveButton(“升级”,
new AlertDialog.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
// TODO Auto-generated method stub
}
});
dialog.show();
AlertDialog.Builder dialog = new AlertDialog.Builder(
getActivity());
dialog.setMessage(“版本信息”);
dialog.setNeutralButton(“取消”, null);
dialog.setPositiveButton(“升级”,
new AlertDialog.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
// TODO Auto-generated method stub
}
});
dialog.show();
40
传统更新是每次 app启动的时候 请求一下服务器,服务器会返回给你数据 (json),然后更新标题,内容,下载地址都在数据里面,点击更新,你就去下载 apk,下载完了,就弹出安装!