#打卡不停更#HarmonyOS应用API-bundle.getApplicationInfo
Api:bundle.getApplicationInfo版本适配:API6作用:以异步方法根据给定的包名获取ApplicationInfo,使用Promise形式返回结果。示例代码:letbundleName"com.example.myapplication";letbundleFlags0;letuserId100;bundle.getApplicationInfo(bundleName,bundleFlags,userId).then((data){console.info('Operationsuccessful.Data:'+JSON.stringify(data));}).catch((error){console.error('Operationfailed.Cause:'+JSON.stringify(error));})