Phone Number Tools Extension

Phone Tools Extension
Permissions required : READ_CONTACTS
Min. api : 5
Release date : 2020-09-20T23:00:00Z
Last update date : 2020-09-20T23:00:00Z
Current version : 1.0

Description

Hello every one.Today i introduce my latest extension.Phone Number Tools :grin: ! This extension allows you to do some calculations with phone numbers, get contact names,images,and phone numbers list in order!

Blocks picture

Documentation

Block Description
This event is fired when the extension gets the contacts image list async.

Params Type Description
list List The list of contacts images.

This event is fired when the extension gets the contacts name list async.

Params Type Description
list List The list of contact names

This event is fired when the extension gets the contacts phone list async.

Params Type Description
list List The list of contatcs phone numbers.

Compare phone numbers a and b, return true if they're identical enough for caller ID purposes.


Params Type Description
Num1 String the number which will be compared with num2
Num2 String the number which will be compared with num1

Format a phone number.


Params Type Description
num String the number which will be compared with num2
defaultCountryIso String the country iso which will be used if there was no country iso

Returns the contact image from phone number.This phone number must be defined in the user contacts.The result will be a content uri.


Params Type Description
number String The number that the extension will get its image

Returns the contact name from phone number.This phone number must be defined in the user contacts.T


Params Type Description
number String The number that the extension will get its image

SetElevationShadow Returns the contact uri from phone number.This phone number must be defined in the user contacts.T


Params Type Description
number String The number that the extension will get its image

Gets contacts image list.


Gets the Contacts images asynchronously.


Gets the Contacts names asynchronously.


SetElevationShadow Gets the Contacts names list.


Gets the Contacts phone number list.


Gets the Contacts phone numbers list asynchronously.


Returns true if the phone number is a global number.


Params Type Description
number String The number that the extension will use to determine if its a global number.

SetElevationShadow Returns true if the phone number is a valid phone number.


Params Type Description
number String The number that the extension will validate.

SetElevationShadow checks a given number against the voicemail number provided by the RIL and SIM card.


Params Type Description
num String The number that the extension will check if it is a voice mail.

Return true if the network portion of address is, as far as we can tell on the device, suitable for use as an SMS destination address.


Params Type Description
num String The adderess that the extension will validate.Ex:5551234567@txt.att.net.

Normalize a phone number by removing the characters other than digits.


Params Type Description
num String The number the extension will normalize.

SetElevationShadow Returns the contact id from phone number.This phone number must be defined in the user contacts.


Params Type Description
num String The number the extension will get its contact id.

Downloads

AIX (V1): io.mohamed.PhoneNumbersTools.aix (16.5 KB)
AIX (V2): io.mohamed.PhoneNumbersTools.aix (30.1 KB)
AIX (V2.1): io.mohamed.PhoneNumbersTools.aix (33.2 KB)

Credits

Thanks for reading! :slightly_smiling_face:
If you liked this extension please hit the like button :heart: And if you've an improvements or bugs please tell me :grinning:

Regards,
Mohamed Tamer

15 Likes

Good extension again :clap::clap:

2 Likes

Thanks very much :heart:

1 Like

What, New Extension Again :exploding_head:
Congratulations @MohamedTamer :partying_face:

2 Likes

Thanks :heart:

They aren't very new :sweat_smile: I've released them both here in the same time, but originally, they are made in two different times, but wasn't released here in the app inventor community.

3 Likes

Hi @MohamedTamer, can you attach an aia test ?
blocks(5)

Nice extension! :+1:

But there are some minor bugs:

Thanks @patel and @Anke for your replies :slightly_smiling_face:

You can check my answer here

... and my answer here:

3 Likes

Sir, Is it possible with your extension show specific group contacts? If possible please write the block. I have very few knowledge.
Please reply.

It's not possible with the current blocks, however, I could do an update for that !

2 Likes

Then what are you waiting for :yum:

1 Like

Many thanks.

1 Like

I want to 'show specific group of contacts' or 'show specific "PHONE_TYPE" contacts'

Version 2

New Blocks

1- GetGroupsList
component_method - 2021-01-21T224449.661
Gets all of the groups stored on the device, or in any account registered on the device.
2- GetContactGroups


Get the list of groups the contact is added to.
3- GetGroupContacts

Get the list of contacts added to a group
( Requested by @Sirajul_Haque )
4- GetContactEmail

Gets the the contact email, the corresponding event isn't called if there isn't any email found for the contact.
5- New events for the added blocks, called when the result is found :
blocks - 2021-01-21T225621.862
Thanks! :smiley:

7 Likes

@MohamedTamer Congrats on yet another extension.

1 Like

Sir please send an aia file. I can't manage the problem.
"
3- GetGroupContacts
component_method - 2021-01-21T224846.389
component_method - 2021-01-21T224846.389
716×108 10.9 KB

Get the list of contacts added to a group
( Requested by @Sirajul_Haque )
"

1 Like

Hello Sirajul,
Have you experienced any problems using any of the new blocks? Here are a sample blocks that explains how to use the GetGroupContacts block:
IMG_20210123_173556_990
The GetGroupContacts block calls the GotGroupsContacts event, tye event have the contacts variable which contains a list of all of the contacts numbers, you can modify, delete or get a specific item from this list using the list blocks or use them with the List view or the List Picker components :slightly_smiling_face:

1 Like

Thank you, very much sir.

2 Likes

It works fine.

2 Likes