2018-12-14 21:58:45 +01:00
2019-01-20 22:19:30 +01:00
2019-01-30 20:47:40 +01:00

QtAndroidTools

QtAndroidTools is a library that allows to simplify access to some native Android features from Qt C++ and QML.

The tools

ApkExpansionFiles
Help in manage the apk expansion files download
Documentation

AppPermissions
Allow to request Android app permissions in an easier way
Documentation

ApkInfo
Return info about the apk containing the executed app
Documentation

BatteryState
Allow monitoring the battery level and state
Documentation

SignalStrength
Allow monitoring the strength of the phone signal
Documentation

AdMobBanner
Allow to show AdMob banner inside QML app
Documentation

How To Integrate

  • Place QtAndroidTools lib to your project dir and include it in .pro file
include(QtAndroidTools/QtAndroidTools.pri)
  • Assign in you .pro file varialble ANDROID_PACKAGE_SOURCE_DIR before include QtAndroidTools/QtAndroidTools.pri, for ex.
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
  • In the main() body insert the call for initialize the library
QtAndroidTools::InitializeQmlTools();

IMPORTANT NOTE: The library .pri check if java sources are already present into android/src folder, if no copy the library files. In case you are updating the library remember to remove these java files to be sure having always the new java versions code.

Description
No description provided
Readme MIT 2.4 MiB
Languages
Java 58.7%
C++ 28.4%
QML 9.1%
QMake 2.3%
CMake 1.5%