Questions tagged [qtandroidextras]

The QtAndroidExtras module provides classes to make the programming easier for additional functionality on Android.

This add-on was introduced in the Qt 5.2 to aid the development for the Android platform.

The official documentation of the module can be found here.

77 questions
0
votes
0 answers

Qt Android get Home and recent Apps button press

I need to turn our Qt-Android App into a kind of Kiosk-App so the App wont close anymore if the user presses The home, back or recent apps button. Our App will be displayed on all kinds of TVs or tablets and it should just not be exitable by a user…
GeKo1990
  • 3
  • 1
0
votes
1 answer

Is it because of Doze mode in android, I can never create an accurate alarm clock app using AlarmManager?

I am using AlarmManager, trying to create an Alarm app for android. I noticed that setRepeating was not working when the phone sleeps. So, I tried setExactAndAllowWhileIdle. But, I read this: Unlike other alarms, the system is free to reschedule…
0
votes
0 answers

Qt android : How can I use a java file without registering it as the main activity in the manifest?

I can use JNI to issue a notification using a java file. The only way I can do that is by replacing the activity line in the manifest like so: From: To the path for the java…
Mena
  • 3,019
  • 1
  • 25
  • 54
0
votes
2 answers

Qt android Can't listen to os intents ex.RECEIVE_BOOT_COMPLETED

I have an android service that runs when i open my app, now I want my android service to run at boot time. I tried the bellow code, but the service is not running automatically when i reboot my device. I cannot see it running as a service on my…
Mena
  • 3,019
  • 1
  • 25
  • 54
0
votes
1 answer

Freshly setup Qt build for Android fails on OSX machine

I am doing a fresh installation of Commercial Qt on a new MacOS Sierra machine. I am trying to build a sample Qt app for android & iOS. I am able to build my QtApp for iOS without any trouble. But on android I get the following error: Buildfile:…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
0 answers

Serial Communication permissions from Qt on Android

I'm trying to connect an Arduino device to my Qt Android App. When I run it from ubuntu, first I'm not able to connect to my serial port because I need to give permissions, it's easy solved typing this on Ubuntu terminal: sudo chmod a+rw…
carles.sole.grau
  • 123
  • 1
  • 1
  • 6
0
votes
1 answer

Is is possible to update Qml Android application by changing qml file remotely

I am wondering if it is possible to update qml android application remotely by changing qml file. To do this : Qml should be read from the filesystem of the device dynamically instead embedding into the apk. Is it possible?
Muhammet Ali Asan
  • 1,486
  • 22
  • 39
0
votes
0 answers

QGeoPositionInfo not working in QCoreApplication

I'm trying to get the position updates in QCoreApplication, Following is the code i'm trying but i'm getting error as QObject::connect: Cannot connect (null)::positionUpdated(QGeoPositionInfo) to…
K Vinay
  • 13
  • 6
0
votes
1 answer

Memory Usage of Qt Application on mobile device

I was testing with simple qt quick application on android & ios device. For android,memory usage is 31 MB where as for IOS it jumps to 41 MB. Installing through ministro requires active internet connection.Upon deploying,I see a lot of Qt…
0
votes
1 answer

QMetaObject InvokeMethod method passing integer Array argument

I am fairly new to Qt, and I am trying to do some Android Development. I am working with Qt and using the QAndroidJNIEnvironment. In the code, I am implementing my native method using QMetaObject::invokeMethod to invoke a slot in the QMainWindow…
0
votes
1 answer

Android- start a dialog when application on background

I have an application which has call dialog. I'm trying to show call dialog on lock screen. it has worked when application was not on background, actually it didn't work when application was open and lock screen was active. Here is my code: …
Farzan Najipour
  • 2,442
  • 7
  • 42
  • 81
0
votes
1 answer

Qt Android, How to access an external object in QRunnable?

I have a thread class that works nice on desktop but crashes on android. In my Qt application I need a task with a shared object like this: class UpdateTask : public QRunnable { MyPointer * _p; void run() { qDebug() << "Hello…
a.toraby
  • 3,232
  • 5
  • 41
  • 73
0
votes
1 answer

Qt Android Extras Call Class

Say I have a Java class, public static String helloWorld() { return "hello world!"; } How, in Qt, do I get what this function returned? The example for notifications has the following: QAndroidJniObject javaNotification =…
Jacob
  • 1,335
  • 1
  • 14
  • 28
0
votes
2 answers

Bluetooth with Qt on Android. Calling java classes through jni on abstract class

Possible duplicate here, but the accepted answer is very short and not of much help. I am using Qt 5.2 for Android. I want to use my android device Bluetooth functionality which is currently not directly supported by the Qt framework. Therefore I…
uniquenamehere
  • 1,869
  • 3
  • 31
  • 60
0
votes
1 answer

Can’t create java class by QAndroidJniObject

Try to create a java class from c++ side but keep crashing appBucksAdv.java package adv; import org.qtproject.qt5.android.bindings.QtApplication; import org.qtproject.qt5.android.bindings.QtActivity; import android.os.Bundle; public class…
StereoMatching
  • 4,971
  • 6
  • 38
  • 70