[solved] Adding Java classes to the manifest
-
wrote on 21 Mar 2014, 17:40 last edited by
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="org.qtproject.qt5.android.bindings.QtActivity"@
@ android:name="com.test.CustomClass"@
I was wondering what is the proper way to add more than one java class.
Any ideas? Thanks!
-
wrote on 24 Mar 2014, 13:19 last edited by
You can add as many java classes as you need in your manifest by adding multiple "<activity /> tags":http://developer.android.com/guide/topics/manifest/activity-element.html, there must however be exactly one which inherits from QtActivity as main entry class (which you've referenced above).
Best,
Alex -
wrote on 24 Mar 2014, 16:16 last edited by
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
1/3