How can I get contact name with his/her number

I'm trying to develop a simple app using Android Scripting and Python.

Now, I have a phone number, and I want to find out which contact has that number. I can do a contactsGet() and search for numbers, but so many programs uses that feature that, I think there is an easier way for that.

There is a question with same problem, but Java, is there a Python equivalent? Search contact by phone number

Is there a simple way to achieve that?

Any example code is appreciated.

Edit, after a few days with no answer, I decided to change the question a little: What is the best way for search a number for a list which I got with contactsGet()?

20
задан Community 23 May 2017 в 12:17
поделиться