Some time ago, I wrote a code to restart the running application on Android. You might well ask why such a thing was needed. It was needed because there are cases where, whenever a user changes the theme, the application has to restart to apply the change (it can’t be applied on the fly). In […]
Android blogs Get the RSS Feed
Blogs from KDAB’s Qt on Android expert, Bogdan Vatra, who created and manages Ministro II which is installed by millions of users. Bogdan started the work on Qt on Android in 2009.
Qt on Android: How to use Android Toast
To get you started on this, we’ll be using KDAB’s Android utils with the humble Toast. Toasts are small popups which are used to show the user some feedback. Check Google’s API guide for more info about toasts. The easiest way to show a toast is to use Toast.makeText(Context context, CharSequence text, int duration) static […]
Qt on Android: How to convert Qt images to Android Images and vice-versa
Sometimes we need to exchange images from Android world to Qt world and vice-versa, therefore in this article we’re going to see how to convert a QImage to an Android Bitmap and how to convert an Android bitmap and an Android Drawable into a QImage. To get access to Android Bitmap data & info we’re […]
Qt on Android: How to create a zero-copy Android SurfaceTexture QML item
Motivation: Android SurfaceTexture is used by all Android classes that need to display (a lot of) frames, it can be used to display media player, camera, etc. You can also use it in combination with other players: OpenMAX, VLC, etc. (well, VLC and other C++ player are using MediaCodec) to decode the images directly to […]
Qt on Android: How to run C++ code on Android UI thread Useful features you need on Android that don't have a Qt API
I’d like to start a new series of Qt on Android articles, these will be small articles which will focus on useful features that you’ll need on Android but which don’t have any Qt API (yet). I’ll start with two pretty useful functions. These functions will help us to run C++ code directly on Android […]
KDAB contributions to Qt 5.5
Good news, everyone! Qt 5.5 has just been released! The release process of Qt 5.5 has been focused on stabilizing and improving performances. Once more KDAB is proud to be a part of the release, with its engineers constantly providing contributions and patches, as demonstrated by the commit graph of the last 16 weeks: In […]
Qt on Android Episode 7 How to access and use Android Java API using JNI in a safe way.
Update: Here you have also the Chinese version, thanks goes to Foruok. In the last two Qt on Android episodes we learned how to use basic JNI on Android and how to use an external IDE to easily manage the Java part. In this episode, it is time to move forward and focus on extending […]
Qt on Android Episode 6 - How to use Android Studio to extend and debug the Java part of your Qt application
Update: Here you have also the Chinese version, thanks goes to Foruok. In the last Qt on Android episode we learned the basics of JNI on Android in a Qt way. In this episode I’d like to focus on tools that will help us to be more productive when we extend our Qt on Android applications. […]
Fun with Android
AKA: I know what you did last Christmas ! Hello folks, I’d like to share with you a few things that I did during this Xmas. Besides the fact I’ll never ever take a vacation before Xmas, because Brasov is a tourist attraction and it was FULL of tourists in that period. I could ski […]
Qt on Android Episode 5 - An introduction to JNI on Android, the Qt way
Update: Here you have also the Chinese version, thanks goes to Foruok. After we’ve seen how to set up the development environment, how to use Qt on Android and what deployment systems are available and how to sign the final package, it’s time to move forward. In this article we are going to learn about […]