如何获取App版本号，版本名，屏幕分辨率等信息
=======================

1.  通过@kit.AbilityKit中的bundleManager模块查询bundleInfo，其中包含App版本号和版本名。
    
    import { BusinessError } from '@kit.BasicServicesKit';
    import { bundleManager } from '@kit.AbilityKit';
    
    _// ..._
    bundleManager.getBundleInfoForSelf(bundleManager.BundleFlag.GET\_BUNDLE\_INFO\_WITH\_APPLICATION).then((bundleInfo) => {
      let versionName = bundleInfo.versionName; _// App version name_
      let versionNo = bundleInfo.versionCode; _// App version code_
    }).catch((error: BusinessError) => {
      console.error('get bundleInfo failed, error is ' + error);
    })
    
2.  在context.config中获取screenDensity，其中包含屏幕分辨率信息。
    
    import { common } from '@kit.AbilityKit';
    
    _// ..._
    _// In the utility class: Save the context to AppStorage in the EntryAbility - onCreate lifecycle, then use AppStorage to retrieve it in the utility class_
    let context = AppStorage.get('context') as common.UIAbilityContext;
    
    let screenDensity = context.config.screenDensity;