Passing android Intents to Qt

Working on QField I had the necessity of passing values from the to the Qt cpp world, here how I did it using an Intent that is sent to the QtActivity (the one you should not edit that comes with Qt). For much more information see this post series.
hopefully this will be helpful to someone.

This is the first version of the cpp code that I wrote, just for reference. The above code is much cleaner

Posted in Android, C++, Non-commercial
2 Comments » for Passing android Intents to Qt
  1. AF says:

    Thanks for your code!
    I can read the intent passed parameter, BUT a question:
    How can return an argoument to the calling Activity (Intent) ?, for example in Java

    Intent intent = new Intent();
    intent.putExtra(“list”, tmpList);
    setResult(RESULT_OK, intent);

  2. Thanks a Ton it helped.

1 Pings/Trackbacks for "Passing android Intents to Qt"

Leave a Reply

Contact GmbH
Mythenstrasse 37A
8840 Einsiedeln

Email: [email protected]
Twitter: @OPENGISch
Mobile: +41 (0)79 467 24 70
Skype: mbernasocchi
Support QField development
%d bloggers like this: