Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: How to get sim card information for Android and IOS ?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Sep 13, 2017 7:35 AM Last Post By: Erik Salaj Threads: [ Previous | Next ]
Guest
How to get sim card information for Android and IOS ?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 24, 2016 3:16 AM
Bonjour,

I'm working with C++ Seattle.

I would like to read the IMEI and IMSI of the sim card from an Android and IOS application.
I know how to it, but only for Android. For those who are interested by the code :

#include <Androidapi.JNI.Telephony.hpp>
#include <Androidapi.Helpers.hpp>

_di_JObject TelephonyServiceObj = SharedActivityContext()->getSystemService(TJContext::JavaClass->TELEPHONY_SERVICE);
_di_JTelephonyManager TelephonyManager = TJTelephonyManager::Wrap(((_di_ILocalObject)TelephonyServiceObj)->GetObjectID());
UnicodeString IMSI = JStringToString(TelephonyManager->getSimSerialNumber());
UnicodeString IMEI = JStringToString(TelephonyManager->getDeviceId());

Could you help me to write a unique code for Android and IOS to get IMEI and IMSI ?

Best regards

Gabriel

peiman f

Posts: 73
Registered: 4/16/14
Re: How to get sim card information for Android and IOS ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 9, 2017 11:17 PM   in response to: Guest in response to: Guest
there isnt any way to get imei and imsi and other device information ??
Erik Salaj

Posts: 135
Registered: 12/23/11
Re: How to get sim card information for Android and IOS ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 13, 2017 7:35 AM   in response to: peiman f in response to: peiman f
there isnt any way to get imei and imsi and other device information ??

see DeviceInfo for Android:

https://www.winsoft.sk/adeviceinfo.htm

Erik Salaj, WINSOFT
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02