[Android-development] Build an Android Launcher in Qt ...

Éric Seigne eric.seigne at ryxeo.com
Fri Feb 28 21:44:32 CET 2014


Hello,
good news this week:
https://blog.qt.digia.com/blog/2014/02/27/qt-5-3-alpha-available/

so i've downloaded Qt 5.3, run configure, build and now i can use intent
!!!! THANKS A LOT

but, i'm lost, i can't understand (and i think this is differences
between java and c++) ... so here is my problem.

As an easy example, i just want to run app2 from app1 (final target is
to make an android launcher in Qt)

So app2 android/AndroidManifest.xml is

<?xml version='1.0' encoding='utf-8'?>
<manifest android:versionName="0.2" xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="com.my.app.name_two" android:versionCode="1">
    <application android:label="AppName2" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:icon="@drawable/icon">
        <activity android:label="@string/app_name" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:screenOrientation="landscape" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation">


And in app1 i try this:

    int receiverRequestCode = -1;
    QAndroidJniObject intent = QAndroidJniObject::callStaticObjectMethod("com/my/app/name_two", "QtActivity","");
    QtAndroid::startActivity(intent, receiverRequestCode, 0);

but i don't know what i have to use as first and second parameters of 
callStaticObjectMethod function ?

could you please help me ?

Thanks,
Éric

Le 20/02/2014 10:01, Éric Seigne a écrit :
> Hello BogDan,
>
> i will wait 5.3 :)
>
> and better, i will download and test 5.3 alpha
> (http://qt-project.org/wiki/Qt-5.3-release) ... is there a sort of
> "howto download  and test an alpha release" ?


-- 
Éric Seigne - Directeur                    | eric.seigne at ryxeo.com
RyXéo SARL                                 | http://www.ryxeo.com
21 avenue M. et E. Dulout                  | tel +33 (0)5 35 540 118
33600 Pessac - FRANCE                      | fax +33 (0)9 56 606 607




More information about the Android-development mailing list