[android-developers] Phone Number Format Issue

2014-01-20 Thread Muhammad Rashid
Hi,

I would like to say that I am developing an SMS app with own database. I am 
facing an issue to query record with phone number from sqlite db.

For example if a record is saved with phone number +923214917948 and I try 
to fetch this record by 03214917948, it fails to fetch. But ideally it 
should fetch because both are same phone numbers. 

How to standardise a simple phone number to international format or any 
other solution.

Regards,
Muhammad Rashid

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Phone number formating on incoming call, determing country code?

2011-03-31 Thread Freddman
Hi!

I'm writing an app that reads the number for an incoming call.
The idea is then it extract the country code if it's an international
call.
I'm not certain of how the phone numbers are formatted (if there is
some kind of unified formatting for incoming numbers). Sometimes when
in receive an international call, it can be formatted as +46 or
some cases 0046.

Is there a simple way to extract the country code from a number? Or
perhaps re-format the number so that the country code easily can be
extract. Iv taken a look at the PhoneNumberUtils class, but so far i
haven't struck gold :(

Any help is appreciated!

Fredrik

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] phone number of outgoing call.

2009-10-21 Thread Honest

Hello,

I used phoneStateListener and telephonyManager to get the state of
outgoing and incoming call but during outgoing call it is not passing
number in public void  onCallStateChanged (int state, String
incomingNumber). Is there any work around of it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Phone number format when writing to Contact database in android

2009-07-16 Thread n179911

Hi,

Is Phone number normalized to a standard format before writing to the
Contacts Database?
For example, if user enter 222333 or 222- when 'edit contact', it
will be 'normalized' to a standard format (e.g. 222-).

If the  phone number is normalized to 1 format, then when search for a
particular number, I can just search for 222- instead of both
222- or 222333 or any other valid format.

Thank you.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] phone number

2009-02-27 Thread Suman

Hello


 Thanks for reply. Can anyone tell me how can i get the
phone number from where sms is sended.

   Well i have got the body of sms by this coding.

 Uri uri = Uri.parse(content://sms/inbox/);
 String[] columns = new String[]{body};

Now please tell me

 String[] columns = new String[]{?};

Am waiting for the answer. Thanks in advance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Phone number

2009-02-26 Thread Suman

Hello


  Thanks for reply. Can anyone tell me how can i get the
phone number from where sms is sended.

Well i have got the body of sms by this coding.

 Uri uri = Uri.parse(content://sms/inbox/);
  String[] columns = new String[]{body};

Now please tell me

 String[] columns = new String[]{?};

Am waiting for the answer. Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---