A search suggests that, subject to SIM security, this is possible in Java via:
But is this possible in B4A?
It doesn't matter if it is unreliable, it would just be a "default" to avoid some app users having to type their own number into an app set-up screen.
(Obligatory, sorry 1st post apology goes here Got the trial last night and bought today so still learning.)
B4X:
TelephonyManager tMgr =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
mPhoneNumber = tMgr.getLine1Number();
But is this possible in B4A?
It doesn't matter if it is unreliable, it would just be a "default" to avoid some app users having to type their own number into an app set-up screen.
(Obligatory, sorry 1st post apology goes here Got the trial last night and bought today so still learning.)