+ 3
I'm trying to write a program that calls numbers by contact or phone number but I dont know what a Uri is or how to get a Uri.
I'm using qpython which is on android and they have a module called androidhelper with all kinds of cool methods you can use. One of them is called phoneDial() and these are the attributes: PhoneDial() self,uri phoneDial(uri) Dials a contact/phone number by URI. uri (String) But everytime I write androidhelper.Android.phoneDial("5453421123") Or androidhelper.Android.phoneDial("Bobby") It comes up with something like result(id = 1, result = none, error = none) Or sometimes it will give me a longer one. Can anyone help me out? I know a uri is kinda similar to a url but how do I find the uri for a contact in my phone?
3 Answers
+ 3
I don't think uri is what you're looking for.
See this question in stackoverflow:
https://stackoverflow.com/q/17593280/10408726
+ 2
Why don't you use phoneDialNumber()?
phoneDialNumber(phone_numbe) Dials a phone number. phone number (String)
+ 1
ÎM!N
Well when I use phone dial number it only dials the number in but doesnt actually start the call. I was looking for something similar that would but couldnt find it.
Also I want to be able to search for the contact string as well which phoneDialNumber() won't allow me to do... also pretty curious to learn about URI as well