Nominate our 2022 Qt Champions!

[solved] Adding Java classes to the manifest

  • I am trying to add few Java classes to the manifest to be able to call them using QAndroidJniObject, I searched and I saw the answers to the other threads poiting to the sample provided in android-extras.

    I was able to make it work by following that, in that example they replace the activity name with the path to the java class

    @ android:name=""@

    @ android:name="com.test.CustomClass"@

    I was wondering what is the proper way to add more than one java class.

    Any ideas? Thanks!

  • You can add as many java classes as you need in your manifest by adding multiple "<activity /> tags":, there must however be exactly one which inherits from QtActivity as main entry class (which you've referenced above).


  • Thank you that's what I wanted to know! I'm still trying to understand how to structure my project in the proper way and I'm having a hard time trying to get broadcast messages

Log in to reply