未验证 提交 8e7de0d0 编写于 作者: A Austin 提交者: Gitee

update en/device-dev/subsystems/subsys-application-framework-guide.md.

Signed-off-by: NAustin <liaozhiqi7@huawei.com>
上级 7ab28d66
......@@ -534,7 +534,7 @@ When uninstalling an application, you can specify whether to retain application
```
sem_init(&g_sem, 0, 0);
const uint32_t WAIT_TIMEOUT = 30;
std::string BUNDLE_NAME = "com.huawei.demo"; // Bundle name of the application to be uninstalled
std::string BUNDLE_NAME = "com.example.demo"; // Bundle name of the application to be uninstalled
Uninstall(BUNDLE_NAME.c_str(), &installParam, UninstallCallback);
struct timespec ts = {};
clock_gettime(CLOCK_REALTIME, &ts);
......@@ -557,7 +557,7 @@ You can use the **GetBundleInfo** function provided by **BundleManager** to
2. Call **GetBundleInfo** to obtain bundle information about a specified application. The **bundleName** parameter indicates the pointer to the application bundle name, and the **flags** parameter specifies whether the obtained **BundleInfo** object can contain **AbilityInfo**.
```
std::string BUNDLE_NAME = "com.huawei.demo";
std::string BUNDLE_NAME = "com.example.demo";
uint8_t ret = GetBundleInfo(BUNDLE_NAME.c_str(), 1, &bundleInfo); // When flags is set to 1, the obtained BundleInfo object contains AbilityInfo.
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册