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. Check if Google or Huawei Services are enabled
Forum Updated to NodeBB v4.3 + New Features

Check if Google or Huawei Services are enabled

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 241 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.
  • SyntaXS Offline
    SyntaXS Offline
    SyntaX
    wrote on last edited by
    #1

    Hey there :D

    Some time ago I stumbled across some Utility Function in Qt for Android to determine if google oder Huawei Services are available, but I am not able to find those information anymore O_O

    Of course I could use a flavour in the Gradle file like mentioned in this so thread (https://stackoverflow.com/questions/59974428/have-both-gms-and-hms-in-the-project/60587678#60587678) but I really think there was a native Qt Function for this... Am I getting crazy or did I just getting worse at finding stuff on the internet? xD

    1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by
      #2

      You can do this in runtime by using QAndroidJniObject (via calling some static methods) and passing QtAndroid::androidActivity() as context.

      1 Reply Last reply
      0
      • SyntaXS Offline
        SyntaXS Offline
        SyntaX
        wrote on last edited by
        #3

        Thanks @IntruderExcluder,
        yik that I could implement this manually per JNI calls,
        but I really thought that I stumbled across some native C++ functions in Qt for Android burried in the docs, but for some reason I am not able to find the call anymore.

        Maybe I am really just messing things up in my head :-o

        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