我是黑莓软件开发人员,我的问题是关于黑莓。我希望我自己的黑莓应用程序与服务器进行版本检查,当服务器上的应用程序版本更新时,我希望这个应用程序从服务器自动下载新版本。
有可能吗?可以开发吗?
答案 0 :(得分:1)
如果新更新找到退出应用程序并打开指向下载链接的浏览器,请在应用程序启动时检查应用程序版本。
if(checkVersion()){
Browser.getDefaultSession().displayPage("http://download.com/file...");
System.exit(0);
}
checkVersion() {
// get version information from server
// compare with working copy
if (update)
return true;
else
return false;
}