C

AndroidAppsUtils Class

Helper class wrapping the important functionalities to manage Android apps. More...

Header: #include <AndroidAppsUtils>
qmake: QT += androidappsutils
Inherits: QObject

Static Public Members

int *installedAppsModel()
AndroidAppsUtils *instance()
bool showAppInfo(const QString &packageName)
bool startApp(const QString &packageName)
bool uninstallApp(const QString &packageName)

Detailed Description

Member Function Documentation

[static] int *AndroidAppsUtils::installedAppsModel()

Returns a model pointer (ownership transferred to the caller) based on QAbstractListModel for installed Android apps. The model manages a list containing app name, package name, and icon.

[static] AndroidAppsUtils *AndroidAppsUtils::instance()

Returns a pointer to the AndroidAppsUtils instance.

[static] bool AndroidAppsUtils::showAppInfo(const QString &packageName)

Shows the app info settings view for the package specified by packageName. Returns true if the the app Activity is found and stated, false if not found.

[static] bool AndroidAppsUtils::startApp(const QString &packageName)

Starts the app associated to a given package name, packageName. Returns true if the the app Activity is found and stated, false if not found.

[static] bool AndroidAppsUtils::uninstallApp(const QString &packageName)

Requests the uninstall dialog for the app associated to a given package name, packageName. Returns true if the the app Activity is found and stated, false if not found.

Available under certain Qt licenses.
Find out more.