Home>

Ado,Directly on the code,Here, mainly when the version is upgraded,Used more.

private string getappinfo () {
    try {
        string pkname=this.getpackagename ();
        string versionname=this.getpackagemanager (). getpackageinfo (
                pkname, 0) .versionname;
        int versioncode=this.getpackagemanager ()
                .getpackageinfo (pkname, 0) .versioncode;
        return pkname + "" + versionname + "" + versioncode;
    } catch (exception e) {
    }
    return null;
}
  • Previous String comma separated function sharing in SQL server
  • Next JavaScript implementation method of converting base64 images to formData and submitting them via AJAX
  • Trends