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 8583965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:39:37+00:00 2026-06-11T21:39:37+00:00

I wrote an sms sending application using the instructions Here . Now I want

  • 0

I wrote an sms sending application using the instructions Here. Now I want to add a suggestion for the phone number when the number or name is typed according to the number saved in the phone book i.e like when we enter number to call it suggests a number(dynamically on typing).

Is it possible to do or not? If possible then How Can I do this?I have used API level 2.2.

Edit:
I have do this with the help of Question Here But When I click on the name from phone-book,it place name on text-box but I have need the number to send sms.

Question: How could I get number so that I can sent message to the selected 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-11T21:39:38+00:00Added an answer on June 11, 2026 at 9:39 pm

    Yes, it is possible. You can change fetch the existing numbers in your phone with ContactsContract, change your phone number EditText to an AutoCompleteTextView, and use a SimpleCursorAdapter to bind the numbers from your contacts to the AutoCompleteTextView.


    Addition
    If you want to convert a contact name into a phone number you can try this in your “Submit” Button’s onClick() method:

    Cursor cursor = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 
            new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER }, 
            ContactsContract.Contacts.DISPLAY_NAME + " = '" + autoComplete.getText() + "'", 
            null, null);
    if(cursor.moveToFirst()) 
        phoneNo = cursor.getString(0);
    

    Understand that this only gets the first number from the first contact that matches the name from your AutoCompleteTextView. You’ll have to discern a way to distinguish between contacts with the same name and contact with multiple numbers.

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

Sidebar

Related Questions

I wrote a process explorer using C with GUI interface. I want to add
I wrote sms application for which I wrote BroadcastReceiver. I want to get data
I following this article for sending SMS it is a winform application.. I have
I want to write method to send SMS on number and with text from
I wrote a Java application that reads and sends SMS messages from a USB
I'm trying to write a simple module that will enable sending SMS. I using
i wrote an application that listens received sms'. 2 problems occured. First , I
I am doing sample application using windows mobile 5.0. When I receive an SMS,
I want to write application to send sms via COM port. Currently I have
I am new to iphone development, i have created sms application using Text Links(sms:)

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.