Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding SDK Activity in Qt for Android

Is there any way that we can add separate SDK (Java) Activity to the make process in Qt 5.2 for Android?

I have Qt application that I've compiled for Android and I want to start my own SDK Activity from it, and I was wondering if I can include that activity in the current application.

like image 579
Nemanja Boric Avatar asked Dec 21 '13 12:12

Nemanja Boric


People also ask

Can QT be used for Android?

Qt for Android enables you to develop Qt applications for Android devices, and supports a wide range of features and use-cases. To download and install Qt for Android, follow the instructions on the Getting Started with Qt for Android page. To build Qt from source, see Building from Source.

Is QT good for Android development?

“Qt is stronger when it comes to the mobile UX, the Android development environment offers better developer assistance and debugging, and both are strong when it comes to manipulating media files.

How do I create an APK in Qt?

Note: In Qt Creator, select Projects > Build > Build Steps > Build Android APK > Open package location after build to build the application's . apk and open the directory containing the package.


1 Answers

Through JNI you can do that. Although it is probably not the only way. You can use the Qt Android Extra module. The example is really simple: http://qt-project.org/doc/qt-5/qtandroidextras-index.html.

Have a look in particular to http://qt-project.org/doc/qt-5/qtandroid.html#startActivity.

like image 159
Luca Carlon Avatar answered Oct 19 '22 20:10

Luca Carlon