Okay i will try
@Mohamed_Tamer I have found something regarding this it might help youâŠ
Follow the link below.
http://android2011dev.blogspot.com/2011/08/get-android-phone-call-historylog.html
please add get dual sim number optionâŠ
Thanks
Thanks for reporting , the permission and the ContactImage bugs got solved.
But i didnât quite understand the problem with isValidNumber
and isGlobalNumber
But the isGlobalNumber
( AndroidDocs ) checks if the phone number matches this pattern ( Source) :
[\\+]?[0-9.-]+
If yes, then it returns true.
Yes, but the phone number starts with a space and therefore the result is false.
You need trim
to remove this space.
Thanks, iâve fixed it for both isValid
and isGlobal
blocks.Also the getNumberList
block, will return the number trimmed.
Hi @Mohamed_Tamer
see this pic
get contacts name block return a value ( the number was saved by name ۱ÙÙ
Ù )
but if use (is in a list ) block with (get phone number list ) retune false
Hi @sherif
I think this is due to that the extension may return your number with a space at the start or the end of your number, which will cause isInList block to return false. As âmy numberâ isnât equal to " my number" with a space at the beginning. However , it has been fixed in the next update A work around for now is to trim any space at the beginning or the end of the phone number list the extension returns,ex:
And continue using the TrimmedPhoneNumberList.
@Mohamed_Tamer
I think the reason is not due to the space added at the beginning or the end of the number
Because there are many numbers that give the true value if i used block (is in list ) with phone number list
what about using Do it to find out, what is going on?
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
what about enlarging the Do it result window, so we can see that number you are looking for?
most probably you added some spaces or the internaltional dialing code as you did for the number which starts with +20âŠ
Taifun
@Taifun
@Mohamed_Tamer
Two numbers are saved in one contact as shown
no spaces no country code
How is the second number return false with (GetPhoneNumberList )
and also return a value with GetContactName block ???
Do you see your second phone number ( which is in list block returns false with it ) in the phone number list, the extension returns?
@Mohamed_Tamer
I have tried it many times, many of saved numbers are returning false with using GetPhonNumberList block