PackageInstallerSessionUninstall Method |
Namespace: Com.Datalogic.Device.App
Exception | Condition |
---|---|
PackageInstallerException | - in case of error, when exceptions are enabled through the ErrorManager singleton. |
Call this method to unistall an application installed on the device. The method must be called after having called the OpenSession
.
The method is queued internally and executed when the CloseSession
is called.
The result of the command is received through the listener method [M:Com.Datalogic.Device.App.IPackageInstallerListener.OnResult(System.Collections.Generic.IList`1)]
.
Example:
PackageInstaller packageInstaller = new PackageInstaller(context);
PackageInstallerListener listener = new PackageInstallerListener{public void onResult(List results) {...}};
PackageInstallerSession session = packageInstaller.createSession(listener);
session.openSession();
session.uninstall("com.example.helloandroid");
session.closeSession();