Advertisement
BankUpload Join!

Friday, February 6, 2015

Delphi Android how can get phone number of the existing simcard

for get the number of the existing sim card to the desired device
you ca use this code but maybe not work in all android device




uses

 androidapi.jnı.telephony;

 there is
 TMG is: is jtelephonymanag;
 phonenumber: String;
 begin
 The TMG = TJTelephonyManager.Wrap((SharedActivityContext.getSystemService(TJContext.JavaClass.TELEPHONY_SERVICE)
 as ılocalobject) .getobjectıd);
 phonenumber = jstringtostring (The tmgr.getline1numb); 
 end;  

No comments:

Post a Comment