开发者

can I pull not formatted contacts numbers in Android?

is there any way to get the co开发者_StackOverflowntacts numbers without any format. usually numbers stored with (-) e.g.: 089-6543-456 i want to pull the number as 0896543456.

And another question related to this: can i use ContactsContract.PhoneLookup in order to search for numbers that have partial match and not full match?

Thanks.


See if this will meet what you're looking for with regard to the format:

http://developer.android.com/reference/android/telephony/PhoneNumberUtils.html#stripSeparators%28java.lang.String%29

As for the second part of your question, you may want to consult the content provider api for searching the Contact provider.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜