Android Question GetLine1Number returns empty string

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
hello,

could not find a solution - i am trying to retrieve the phone nuimber using GetLine1Number function but it returns an empty string.

is there a way to get the phone number ?

all other functions works like charm...

thanks
 

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
This method is based on the standard Android API: TelephonyManager.getLine1Number()

Some devices do not support this method for various reasons and return an empty string. There is nothing that can be done about it.
thank you.
i will try some other option
 
Upvote 0
Top