Identify phone number on web page

by Anndy » Wed, 09 Mar 2011 20:22:44 GMT


Sponsored Links
 Hi All,

I have a html page which i am going to open in a WebView. Is there a
way I can identify a phone number on the page and when click on it,
calls the number.

Regards,
Anndy

-- 



Re: Identify phone number on web page

by drasticp » Thu, 10 Mar 2011 01:05:49 GMT


 Take a look at the Linkify class. It may be quite useful. You would
need to use it to add markup to the html before the webview renders
it.

 http://developer.android.com/reference/android/text/util/Linkify.html 




-- 


Sponsored Links


Other Threads

1. Android Market - I now understand

As a developer, I think the Android Market is great, I'm making a nice
bit of money from a little game I made.

I have just recently bought my first app (been a little busy to look
at actually playing, instead of coding).  The purchase was smooth
enough.  However, I played it for about 1 minute, didn't like the game
and returned it.  I got an e-mail confirming that I had returned it no
problems.  The process was all working great.

However, today, there is a charge from Google on my credit card for
$3.03.

There are two things wrong with this.
1. Obviously, I returned the game, so the charge should not have been
there at all.
2. Their currency conversion is terrible!  The estimated cost was
$2.98 for the game (amount was converted to Australian dollars).

I now understand why I get so many emails from buyers saying they
never bought the game, and I get the odd credit card chargeback fee
from disputed transactions.

Obviously, I'm not going to worry about the charge, it is only $3.
However, I really hope Google get on top of this, and I will now be
more sympathetic to buyers that complain about invalid charges.

-- 

2. Pirate Sites

I'm wondering if anyone has a list of the pirate sites? Or... if you 
don't have a list can you post the ones you do know about?


I'm trying to compile a list of the pirate sites that I will make available to anyone who's interested when it's more or less complete (with the aim of figuring out how to disrupt them of course... not to publicize them :). Sincerely, Brad Gies ----------------------------------------------------------------------- Bistro Bot - Bistro Blurb http://bgies.com http://nocrappyapps.com http://bistroblurb.com http://forcethetruth.com http://ihottonight.com ----------------------------------------------------------------------- Everything in moderation, including abstinence (paraphrased) Every person is born with a brain... Those who use it well are the successful happy ones - Brad Gies Adversity can make or break you... It's your choice... Choose wisely - Brad Gies Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead --

3. Network connection with libcurl/ping

4. How to write screen saver in Android

5. Problem with table layout

6. Obfuscation/optimization causing error?

7. Samsung Adopts ARM鈥檚 Next Generat ion Mali-T604 GPU