[Android-development] Build an Android Launcher in Qt ...
BogDan
bog_dan_ro at yahoo.com
Wed Feb 19 10:36:52 CET 2014
Hi,
Yes, is not an easy job though!
You need extend QtActivity, create a method which will start the activity (in the Android UI thread) call that method from Qt.
Only if you need the activity results, then you need to overwrite *onActivityResult* method (make sure you always call its supper class implementation) to get the results and forward them to Qt.
Make sure you are *NOT* using requestsCodes under 0x10000, they might collide with Qt's internal ones!
Cheers,
BogDan.
>
> Le 19/02/2014 02:06, Eric Seigne a écrit :
>> Hello,
>> i just want to launch activity provided by others apps from my Qt App,
>> such as a launcher.
>>
>> Is there somewhere some examples ?
> Hello,
> i've fount it :
>
> " \class QAndroidActivityResultReceiver
> \since 5.3
> \brief Interface used for callbacks from onActivityResult() in the
> main Android activity.
>
> Create a subclass of this class to be notified of the results when
> using the
> \c QtAndroid::startActivity() and \c QtAndroid::startIntentSender()
> APIs.
> "
>
> so ... i will wait to 5.3 :-/
>
> is there any solution for 5.2 ?
>
>
> Éric
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development
>
More information about the Android-development
mailing list