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. Qt for android, C++ aplication or java bytecodes
QtWS25 Last Chance

Qt for android, C++ aplication or java bytecodes

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
nativecompilerandroidjava
4 Posts 3 Posters 1.4k 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.
  • E Offline
    E Offline
    Exotic_Devel
    wrote on last edited by Exotic_Devel
    #1

    When I compile applications for Android does the compiler generate applications native C++ or generates Java Bytcodes?

    M 1 Reply Last reply
    0
    • E Exotic_Devel

      When I compile applications for Android does the compiler generate applications native C++ or generates Java Bytcodes?

      M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      A C++ compiler does not generate C++, it generates native machine code from C++.

      1 Reply Last reply
      1
      • E Offline
        E Offline
        Exotic_Devel
        wrote on last edited by
        #3

        That's what I mean, it generates a native application.
        My question was whether Qt is just a binding for the Android Java classes whose compilation would result in Java bytecodes or a native hardware application.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          No it's not. Your application becomes a library loaded by Android's runtime which requires a small amount of Java but you are writing and using C++. You can access Android's Java functionalities through JNI if needed.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          4

          • Login

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