QtAndroidTools: SignalStrength


SignalStrength allow to monitoring the strength of the phone signal

QtAndroidTools is a library that allows to simplify access to some native Android features from QML



QtAndroidTools library source here. The project provide a demo app showing the use of all features.

This tool install a listener for monitor the phone signal. Remember for allow the library to work in this case the app need to have the following permission:

android.permission.READ_PHONE_STATE

There are two properties reporting the strength of the phone signal in row number and based to the conventional states as follow:

import QtAndroidTools 1.0

QtAndroidSignalStrength.signalStrength
QtAndroidSignalStrength.signalLevel

Signal level possible states are the following:
  • LEVEL_GREAT
  • LEVEL_GOOD
  • LEVEL_MODERATE
  • LEVEL_POOR
  • LEVEL_NONE
PLEASE NOTE: the report the the signal strength change doesn't arrive immediately but, instead, require some seconds to be updated after the change. Don't worry if you don't see an immediate update, just wait a little.



Comments

Popular posts from this blog

Access GPIO from Linux user space

Launch an app from Android shell terminal

Android: adb push and read-only file system error