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++
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);

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

Leave a Reply

%d bloggers like this: