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. Android: How can i access the android's functions in QT?

Android: How can i access the android's functions in QT?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 4 Posters 1.4k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Spike89
    wrote on last edited by
    #1

    I want to use @android.speech.RecognizerIntent;@ but i don't know how can i reach it or any other android functions in QT.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      glicanear
      wrote on last edited by
      #2

      You might use some of the Android stuff by modifying project file(.pro) in a something like that:

      @ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-sources

      OTHER_FILES +=
      android-sources/AndroidManifest.xml @

      AndroidManifest.xml must be modified(if I remember, then you have to create that file by yourself or just copy and edit from examples) to include that intent, what you want to use. You can edit AndroidManifest.xml from QtCreator - that is better, than writing on your own and with great probabilty failing to create proper manifest file.

      1 Reply Last reply
      0
      • GianlucaG Offline
        GianlucaG Offline
        Gianluca
        wrote on last edited by
        #3

        Follow this example: http://blog.qt.digia.com/blog/2013/12/12/implementing-in-app-purchase-on-android/
        It shows how to access to the Android API from Qt/C++

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Hi,

          I think "this":http://deuteria.blogspot.in/2014/02/calling-androids-text-to-speech-from-qt.html would be useful to you.

          157

          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