Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:29:16+00:00 2026-06-08T12:29:16+00:00

i have an android app that needs to listen for incoming sms messages. i

  • 0

i have an android app that needs to listen for incoming sms messages. i then need to display the senders name associated with the sending telephone number.
my probelm is that the originating address has the country code prefix, where as my contacts does not.

how can i cope with this situation? i was hoping

android.telephony.PhoneNumberUtils

could help but none of its methods seems to be of any use in this case.

surely there must be some android utilities that can convert between numnbers with and without country code prefixes.

for example the smsManager always appears to give me originatingaddress with +44 prefix, whereas some of my personal contacts do not have this prefix attached. am i going to have to code a conversion prcess myself? or use a LIKE predicate when using contentResolver to get my telephone contact display name?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:29:17+00:00Added an answer on June 8, 2026 at 12:29 pm

    I’m using PhoneNumberUtils.compare(number1, number2) and it works just fine.

    http://developer.android.com/reference/android/telephony/PhoneNumberUtils.html#compare(java.lang.String, java.lang.String)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Android app, I have some data that needs to be synced daily
I have an Android client that needs to authenticate with a python Google App
I have an app that needs to capture a customer's signature and then present
I have a mobile app on android that needs to send small amounts of
I have an Android app that needs to be built for different environments (e.g.,
I have a client who needs an Android App that can recognize spoken commands.
I have an android app that needs to connect frequently to the server to
I have Android client app that communicates with server using Socket . On my
I have an android app that I am trying to launch and it gives
I have an Android app that has an Application class and I have another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.