Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [solved] Adding Java classes to the manifest

[solved] Adding Java classes to the manifest

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Iktwo
    wrote on 21 Mar 2014, 17:40 last edited by
    #1

    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!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexleutgoeb
      wrote on 24 Mar 2014, 13:19 last edited by
      #2

      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

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Iktwo
        wrote on 24 Mar 2014, 16:16 last edited by
        #3

        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 Reply Last reply
        0

        1/3

        21 Mar 2014, 17:40

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved