Qt Android (Necessitas) soft-keys control volume.
To control application volume from Necessitas the following changes are required into QtActivity.java file import android.media.AudioManager; public class QtActivity extends Activity { private AudioManager audio; …….. } and add into public boolean onKeyDown(int keyCode, KeyEvent event) following code: public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_VOLUME_UP: audio.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_RAISE, AudioManager.FLAG_SHOW_UI); return true; [...]
Share and Enjoy
How to use Java from Qt/C++ in Necessitas
This steps are valid for Necessitas Alpha 3 Update 4 Add your java class inside org.kde.necessitas.origo (i will refer in this article as JavaManager.Java) Edit qtmain_android.cpp Replace static JavaVM *m_javaVM = NULL; static JNIEnv *m_env = NULL; static jobject objptr; with JavaVM *m_javaVM = NULL; static JNIEnv *m_env = NULL; jobject objptr; //new pointer to [...]
Share and Enjoy
Qt/Necessitas Lock orientatin in landscape / portrait
Necessitas doesn’t have for the moment an option into Qt Creator to lock the screen orientation, but this can be easily made manually. Go to Android directory (in your project),open AndroidManifest.xml and add next information into activity tag: <activity android:name=”org.kde.necessitas.origo.QtActivity” android:configChanges=”orientation|locale|fontScale|keyboard|keyboardHidden” android:label=”@string/app_name” android:screenOrientation=”portrait” > Share and Enjoy
Share and Enjoy
Necessitas alpha 3 update 3 released today
Bogdan Vatra just announce the the latest Qt for Android (aka Necessitas) was released today: Hello folks, Today we push the last update of alpha 3 release, this update should fix a few issues of new keyboard implementation [1]. Regarding alpha4 and beta1 schedules, I can’t tell you much today, because it depends *IF* more [...]
Share and Enjoy
Holiday present – Qt Developer Days 2011 videos
You asked for them, waited for them, and we promised they would be worth the wait. Videos of the tech sessions from Qt Developer Days have been encoded and uploaded, and are now available for your viewing pleasure. The link you need is http://developer.qt.nokia.com/videos Use the Qt Developer Days tag on the left side to filter [...]
Share and Enjoy
Nokia Qt SDK 1.1.4 a fost lansat
Noul SDK de la Nokia si Digia a fost lansat. Este vorba de Qt SDK 1.1.4, care doreste sa aduca imbunatatiri majore in ceea ce priveste stabilitatea, performantele si functionalitatea. Noul SDK aduce pe langa imbunatarile pentru MeeGo, aduce in cele din urma si Qt 4.7.4 Pentru Symbian ^3/Anna/Belle. Prin acesasta lansare Nokia reuseste [...]