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
1 answer

Qt/C++ pass static method's argument to class method

Is there a way to pass a static method's argument to a class method? I've tried with QTimer this way: QTimer g_timer; QString g_arg; void staticMethod(QString arg) { g_arg = arg; g_timer.start(1); // It will expire after 1 millisecond and call…
Fausto01
  • 171
  • 14
0
votes
0 answers

Qt call c++ method from java Activity

How can I call a c++ method from a Java activity? This is my Java code: public class TestActivity extends QtActivity { public native void resultRead(String maskedPan); @Override protected void onNewIntent(Intent intent) { ... do…
Fausto01
  • 171
  • 14
0
votes
0 answers

Qt Android start activity and get result in onCreate

I have a java example code that demonstrate how to implement a call to another app. My app is a Qt app so I don't know how to implement that. This is the java code that I received: public class MainActivity extends AppCompatActivity { …
Fausto01
  • 171
  • 14
0
votes
1 answer

Error in building Qt application on Android

first, I should say that I can create a new project and build and run it on my Android device, but I have a problem with one of my projects, Compile output says: 06:20:09: Running steps for project MusiQ... 06:20:09: Skipping disabled step Copy…
Ahmad Mansoori
  • 177
  • 1
  • 11
0
votes
2 answers

How can i communicate Android device with using com port?

I am working on Android project using Qt and i need to communicate between mobile phone and computer. I want to make little demo with using Putty.I want to send data mobile phone over USB cable and display on Putty to ensure communication. When i…
0
votes
1 answer

Can't Hide a QtAndroid Splashscreen with QtAndroid::hideSplashScreen();

I am currently developing a Qt C++/QML app for android and I've come across an issue. By following the steps in this guide: HERE. This produces a very clean and functional SplashScreen (natively I assume). However, It instructs me to use…
Nicholas Johnson
  • 1,012
  • 2
  • 12
  • 35
0
votes
1 answer

QtCreator says: x "SDK tools are not installed"

I open Extras-->Settings in QtCreator and the error "SDK tools are not installed" is shown on the page 'Devices'. What exactly is missing? I installed Android Studio 3.5.3 in C:\Program Files\Android\Android Studio. And Qt Creator 4.11.0 (Community)…
falkb
  • 1,294
  • 11
  • 35
0
votes
0 answers

Camera Not saving the captured image

I Use Qt 5.12.5 and I have qt quick controls 2 project that I run it on my Android Device. Now I have a problem,the signal imageSaved of Camera Not trigger? In below when I click button Camera should capture Button{ onClicked: { …
mohsen
  • 1,763
  • 3
  • 17
  • 55
0
votes
3 answers

Nullpointer on getIntent().getExtras();

code in RegisterActivity1: Bundle extras = new Bundle(); ... case R.id.continue_button: extras.putString("email",eMail_eingabe.getText().toString().trim()); extras.putString("pw1",…
0
votes
1 answer

How to connect to parse server backend from back4app.com for Qt android app

I am trying to develop an Android application with Qt 5.13. I am planning to use a parse-server for my backend. I am using a free plan from back4app. I followed the official tutorial here But I am not sure how to import the android SDK into my Qt…
0
votes
1 answer

Use pocketsphinx in qt-android,There was a problem when using the Chinese package

E cmusphinx: FATAL: "fsg_lextree.c", line 718: #phones > 128; increase FSG_PNODE_CTXT_BVSZ and recompile W libgogojava-sphinx.so: QObject::~QObject: Timers cannot be stopped from another thread what should I do
0
votes
0 answers

Which method should I use to get Android Build Version SDK_INT?

Android Extra has a function QtAndroid::androidSdkVersion() can get API Level, which introduced in Qt 5.3. if (QtAndroid::androidSdkVersion() >= 23) Recently I found there is another way in QOperatingSystemVersion introduced in Qt 5.9 if…
0
votes
1 answer

How to integrate android native code with Qt Quick project?

I am trying to get wifi name connected to my mobile using QAndroidJniObject. java file: package org.qtproject.example; import android.net.NetworkInfo.DetailedState; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import…
Ash
  • 41
  • 7
0
votes
1 answer

How to get notified when incoming phone call arrive in Qt for Android

I am using Qt 5.10 for Android. My program is based on Qt Widgets and it is written in C++. I need to get notified when someone is calling. Is there a way in Qt to know messages such as incoming phone call (Maybe this can be extended to Qt mobile…
Liu Zhiyuan
  • 519
  • 1
  • 6
  • 5
0
votes
0 answers

QML Arabic font rendering incorrectly in iOS

There seems to be difference in font rendering with QML in ios and android as given below This one is correctly rendered in android Please check the difference in ios. Here its showing incorrectly. Do i have to do anything different in iOS for…
Husni Abdul Nazer
  • 103
  • 1
  • 1
  • 12