2

Qt Android (Necessitas) soft-keys control volume.

Posted by George Calugar on 29 February, 2012 in How To, Necessitas |

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

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Google

Tags: , ,

6

How to use Java from Qt/C++ in Necessitas

Posted by George Calugar on 28 February, 2012 in How To, Necessitas, Qt |

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

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Google

Tags: , , , ,

2

Qt/Necessitas Lock orientatin in landscape / portrait

Posted by George Calugar on 16 January, 2012 in Necessitas |

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

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Google

Tags: , , ,

0

Necessitas alpha 3 update 3 released today

Posted by George Calugar on 15 January, 2012 in Necessitas, Qt |

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

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Google

Tags: , , ,

Copyright © 2011-2012 Symbian, Android &iOS blog – most of them powered by Qt All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.1, from BuyNowShop.com.