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. Retrieving the phone number on Android

Retrieving the phone number on Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.1k Views 4 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.
  • _ Offline
    _ Offline
    _.-rFLo_.-
    wrote on last edited by
    #1

    Re: [SOLVED] Fetching the sim card's phone number on Android

    Hello there
    There isn't much documentation on how to retrieve the phone number from the SIM card under Android. Most of it is a couple of years old and involves changing the distributed code. What is currently the best way to do this with Qt 5.8 ?
    Thank you all

    raven-worxR 1 Reply Last reply
    0
    • _ _.-rFLo_.-

      Re: [SOLVED] Fetching the sim card's phone number on Android

      Hello there
      There isn't much documentation on how to retrieve the phone number from the SIM card under Android. Most of it is a couple of years old and involves changing the distributed code. What is currently the best way to do this with Qt 5.8 ?
      Thank you all

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @_.-rFLo_.- said in Retrieving the phone number on Android:

      What is currently the best way to do this with Qt 5.8 ?

      Use JNI and the Java code from here.
      If you want to keep the JNI code minimal you can also create a custom Activity and provide a smethod there (which then gets called with a minimalistic JNI code).

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3
      • _ Offline
        _ Offline
        _.-rFLo_.-
        wrote on last edited by
        #3

        thx a lot for your help

        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