×
Namespaces

Variants
Actions

如何悄悄卸载widget程序

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

代码示例
兼容于
文章
翻译:
hoolee
最后由 hamishwillee 在 06 Aug 2012 编辑

详细描述

这个API并非公开SDK中的一部分。您可以在SDK API Plug-in中找到。


我们可以通过使用SWInstallerLauncher API来卸载一个widget程序,只需传递适当的MIME类型“application/x-nokia-widget”和这个widget的UID


我们可以通过下列代码来卸载一个widget程序

   _LIT8(KMIMEType,"application/x-nokia-widget");
SwiUI::RSWInstLauncher iLauncher;
User::LeaveIfError(iLauncher.Connect());
TRequestStatus status;
iLauncher.Uninstall(status, TUid::Uid(<uid of the widget>), KMIMEType);
User::WaitForRequest(status);
iLauncher.Close();


示例代码

通过这个代码可以悄悄的卸载一个widget程序

File:UnInstall Widget.zip

This page was last modified on 6 August 2012, at 09:43.
119 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×