What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

What is the code to link a graphic to my phone number?

stanwelks

Member
I want to create a graphic with my phone number in it and place it on a website. What is the code to make it so users will be able to click on the graphic and it will automatically dial my number?

Thanks.
 
No such thing that I'm aware of. Most devices know how to parse phone numbers whether they're in emails, texts, or on web sites, etc -- assuming the number's not in an image which is what it sounds like you're trying to do.
 
You could probably generate a QR code for that, but it won't auto-dial. The person who scans the code would have to dial once the number in on their phone.
 
Are you looking to have users dial you with skype via their PC, or via their phone on a mobile site.

I think if you just put your number in text form, a skype plugin will allow them to click it, and a mobile phone (like our droid) will dial it when clicked.

So maybe text over the top of a button graphic.

The other option is via google voice, they include a widget with the service that allows people to call you via clicking on a graphic.
 
edit: Nevermind the text in the ***. I think takeshi was referring to the same thing.

***Me thinks hes asking about the same type of thins that any local business has when you do a voice search. The business name comes up, and right next to it is a phone number link. Click the link, and press send. (I don't know what the code is though.)***

Alternatively, GV has a widget that can be placed on a website that you can click. and it will dial your GV number. If that's what you're asking about, then the instructions can be found in your GV settings.
 
I figured it out. The phone number was part of a graphic and not text so I had to make into an image map and I couldn't figure out how to make it so when the user hovered over the phone number and clicked on it it would dial the number. Here is the code:

<area shape="rect" coords="14,58,163,98" href="tel:1-800-000-0000" />

I actually found the info in iPhone developer documents and I figured it would most likely be the same protocol for Android, and it was. So you have to preface the phone number with the "tel:"

Thanks for your responses.
 
The only thing I see special about that is the tel:

Assuming the Area link works on a graphic, it will also work on text, like so:

<a href="tel:18000000000"> Click here to call 1-800-000-0000 </a>

Check out http://www.popularfront.com/posts/the-dilema-of-linking-to-telephone-numbers/

or just Google for href tel for other info
 
Back
Top