static bool ListApplications(std::vector <androidPackage> *applications);
static bool GetIconSize(const std::string &packageName, int *width, int *height);
static bool GetIcon(const std::string &packageName, void* buffer, unsigned int bufSize);
+
/*!
* \brief If external storage is available, it returns the path for the external storage (for the specified type)
* \param path will contain the path of the external storage (for the specified type)
*/
static bool GetExternalStorage(std::string &path, const std::string &type = "");
static bool GetStorageUsage(const std::string &path, std::string &usage);
+ static int GetMaxSystemVolume();
static int GetDPI();
protected:
static int AttachCurrentThread(JNIEnv** p_env, void* thr_args = NULL);
static int DetachCurrentThread();
+ static int GetMaxSystemVolume(JNIEnv *env);
+ static void SetSystemVolume(JNIEnv *env, float percent);
+
private:
static bool HasLaunchIntent(const std::string &package);
bool getWakeLock(JNIEnv *env);
static ANativeActivity *m_activity;
jobject m_wakeLock;
-
typedef enum {
// XBMC_Initialize hasn't been executed yet
Uninitialized,