Ps: Java is not very will, framework is mvc+asp.net
CodePudding user response:
With the android development before,Essentially, actually is to visit an apk file, and then to download,
Just update, need you to code implementation, namely through the version number compare,
https://blog.csdn.net/hanjun0612/article/details/79355919
CodePudding user response:
In a train of thought:PDA embedded inside a webview, the update directly change the web page,
If the first is packaged into apk, reference winform should be attainable, namely after the match the version number to download the installation package to open a new process update,
CodePudding user response:
PortalThis is just to find can meet the needs of your current
CodePudding user response:
According to the above the tip of the need to pay attention to the current version of the android if greater than 8 you will need to open the corresponding permissionsCodePudding user response:
now login in js wrote a judge the current version, don't know how to download the server c # apk to PDA
//compare the current version number and the server version are consistent
Var deviceId_server=' ';
INF. Httpget (config. Webapi + "INF/adms/user/version", {}, function (data) {
If (data) {
DeviceId_server=data. The data;
Var deviceId_local=window. Lrmui. Storage. Get (' App_Version ');
if (! DeviceId_local | | deviceId_server!=deviceId_local) {//if is empty or inconsistent and server version update tip
INF. Layer. Confirm (' found update file, whether to update? ', function (_index) {
If (_index==0) {
//update
}
If (_index==1) {
INF. TAB. Go (' workspace ');
}
} 'tip' [' now update ', 'update later']);
}
The else {
$(' # account). Val (");
$(' # password). Val (");
INF. TAB. Go (' workspace ');
}
}
The else {
ClientAsyncData. User. States=loadSate. Fail;
}
});