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 deviceuses
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