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. Integrate Java andriod studio into Qt
Forum Updated to NodeBB v4.3 + New Features

Integrate Java andriod studio into Qt

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 1.6k 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.
  • V Offline
    V Offline
    vamp89
    wrote on last edited by A Former User
    #1

    Hello,

    I have an app that is developed using Java in android Studio, this app contains 2 layouts and some java classes.
    My question is, Can I launch this layout from another app that is written in C++ android Qt?
    Meaning that I have my normal app that is written using Qt, and I want when specific button is pressed to launch the android studio app inside a not full screen window.

    Thanks for your help

    1 Reply Last reply
    0
    • QojoteQ Offline
      QojoteQ Offline
      Qojote
      wrote on last edited by
      #2

      Hi.

      I am pretty sure that you cant use an external layout to show up in Qt. But maybe it is sufficient to reuse exisiting java code? That is perfectly possible with Qt. Furthermore you have full connection to android functions itself. Maybe you should play around to start new activities that way? I know there are functions to start new activities like startActivity().

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vamp89
        wrote on last edited by
        #3

        @Qojote said:

        startActivity()

        Can you please give me an example?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vamp89
          wrote on last edited by
          #4

          I managed to do that but there is a question, Can I launch the activity not in full screen but in specific location.

          QojoteQ 1 Reply Last reply
          0
          • NickVN Offline
            NickVN Offline
            NickV
            wrote on last edited by
            #5

            Maybe the following link will help you:
            QAndroidJniObject

            1 Reply Last reply
            0
            • V vamp89

              I managed to do that but there is a question, Can I launch the activity not in full screen but in specific location.

              QojoteQ Offline
              QojoteQ Offline
              Qojote
              wrote on last edited by
              #6

              @vamp89

              Well, i never heard that you can start an app in subwindows as this is quite unusual for mobile systems like android. What could work is to subclass a dialog like alertdialog or something... i would try this next if i had to do it.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vamp89
                wrote on last edited by
                #7

                I want to integrate an app that is already developed in Java android studio in another project already written with QT C++.
                I need the java app to be launched from the QT app but not as a separate app, but as one of its windows .

                1 Reply Last reply
                0

                • Login

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