how to extract phone details for Friend's phone number?

Quickly share your Android Code Snippets here...

how to extract phone details for Friend's phone number?

Postby Snehal » Sat Jan 09, 2010 12:22 pm

i want to extract phone number details of a Friend.
will i get another number's network provider using PhoneNumberUtils class?
I haven't got any reference for extractNetworkPortion(String Phone Number) function.
And i am confused about how to use this method in the program?
the argument phone number is a contact number? It returns string.

Can ayone have the idea about this?
Snehal
Freshman
Freshman
 
Posts: 4
Joined: Sat Jan 09, 2010 7:21 am

Top

Postby Draffodx » Mon Jan 11, 2010 6:17 pm

Where do you want want to extract it from?

If its from the contacts list then just look into the Contacts Content Provider
Draffodx
Master Developer
Master Developer
 
Posts: 205
Joined: Wed Nov 12, 2008 2:31 pm

Thank you for your reply.

Postby Snehal » Tue Jan 12, 2010 6:07 am

not from contacts,i have made separate database for the calls <incoming,outgoing and missed>.
and i want to know the name,address and service provider of each number.

one idea was if there is any function which gives direct information for the inputed cotact number.
but this situation is not there. :(

So , the another idea is, to make a WebView which will search for the <phone number>name,address and carrier from the server like "WhitePages.com". but the program should be service enabled.

So, my target is to run the WebView in the background.
:arrow:
I want to make a small program,
in the 1st view , there will be one edittext box and the GO button.
we will enter phone number in the text box.as soon as we press the go button ,
the service should start,and will search name,address and service provider for this number.

i am not understanding here is that, how we will access text box of the website and how to get result from the same?
can we send our number to the whitepages.com to search for us? and can we get result from the website to our view?
i know it is possible.but how ? i am not getting any reference..
can you help me? Do reply.. Thank You.
Snehal
Freshman
Freshman
 
Posts: 4
Joined: Sat Jan 09, 2010 7:21 am

Postby Snehal » Tue Jan 12, 2010 6:45 am

What is KSoap2 :?:

can i use it in my program ?<above explained>

i got its desciption as Calling a Web Service from Android, means what?
Snehal
Freshman
Freshman
 
Posts: 4
Joined: Sat Jan 09, 2010 7:21 am

Postby Snehal » Tue Jan 12, 2010 8:24 am

Or a URL Connection class..???
Snehal
Freshman
Freshman
 
Posts: 4
Joined: Sat Jan 09, 2010 7:21 am

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 2 guests