B4X FEED How to get the mobile number in the mobile device/sim cards in that device on which my app is installed ?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: How to get the mobile number in the mobile device\/sim cards in that device on which my app is installed ? است. این موضوع تا کنون 29 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع How to get the mobile number in the mobile device\/sim cards in that device on which my app is installed ?
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
29
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
2
Hi,

I would like to get the mobile number of the device on which my app is installed.

Now a mobile number can be stored in a sim card or it may be stored inside the mobile device.

Need help on :

i) detecting the number of sim cards in that device

ii) get the mobile numbers on the sim cards

iii) if it is the case that the number is stored inside the mobile device, get the mobile number from that mobile device.

In this regard I tried the post at:

[H3] [/H3]
I have a need to access the phone number of the Phone running my app. I have found so many, many references to Phone on the forum, but none that tell me what the phone number of the phone is Any ideas please
برای دیدن تصاویر باید ثبت نام کنید


This displays a BLANK for the Phone Number.

Then I tried the post at :

[H3] [/H3]
Hi, I would like to get the mobile number of the device on which my app is installed. Now a mobile number can be stored in a sim card or it may be stored inside the mobile device. Need help on : i) detecting the number of sim cards in that device ii) get the mobile numbers on the sim...
برای دیدن تصاویر باید ثبت نام کنید


in which user Invocker responded
And made the foll. entry in the manifest :

AddPermission(android.permission.READ_PHONE_STATE)

However I am getting the error which is pasted in the code portion below...


Please note that I...



 

عقب
بالا