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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:10:47+00:00 2026-05-31T05:10:47+00:00

I am trying to create a way a user can contact a friend via

  • 0

I am trying to create a way a user can contact a friend via sms, email and a phone call. I have completed the email and SMS part. I have figured out how to use createChooser to select how a message will be sent using either email or text message, this is achieved by clicking on a button, the following code is how I do this:

Intent i = new Intent(Intent.ACTION_SEND);

                i.setType("text/plain");

                i.putExtra(Intent.EXTRA_EMAIL  , new String[]{""});

                i.putExtra(Intent.EXTRA_SUBJECT, "Check out my awesome score!");
                i.putExtra(Intent.EXTRA_TEXT   , "I am playing this awesome game called Tap the Button, and I just scored the incredible highscore of " +s+ " Taps!!\n\nCan you beat it!?");
                try {
                    startActivity(Intent.createChooser(i, "Send mail..."));
                } catch (android.content.ActivityNotFoundException ex) {
                    Toast.makeText(Fail.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
                }

My aim is to have a button that opens a form like this does where the user can select a phone number from the phones phone book.

The above email and text code allows me to choose which way to send the message from the available ways to do it on this phone, if I select email it creates the form using the putExtra. I want one put extras to click on and select a phone number from the phones address book. Here is my latest attempt at this:

   Intent callIntent = new Intent(Intent.ACTION_CALL);

                    callIntent.setType("text/plain");
                    callIntent.putExtra(Intent.EXTRA_PHONE_NUMBER, new String[]{""});

                    try {
                    startActivity(Intent.createChooser(callIntent, "CAlling..."));
                } catch (android.content.ActivityNotFoundException ex) {
                    Toast.makeText(Fail.this, "There are no call clients installed.", Toast.LENGTH_SHORT).show();
                }

When I run the code it catches an exception, saying there is no call client. I have this permission in my android manifest:

uses-permission android:name="android.permission.CALL_PHONE"

I would appreciate any advice on this, thanks.

  • 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-05-31T05:10:48+00:00Added an answer on May 31, 2026 at 5:10 am

    Calling is acheived by using the tel: scheme, not using an extra:

    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:" + number));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a Django app where the user can make a list
I am trying to create a Google Map where the user can plot the
General Problem: I'm trying to create something similar to this: The user can select
I'm trying to create an interface with three tabboxes where the user can choose
I'm trying to create a test app in which the user can pause an
Right, I'm trying to create a system where by the user can do something,
I'm trying to create a form where the a user can click a checkbox
I am trying to create a rule screen where user can specify different rules,
I'm not looking to harvest information, I'm just trying to create a way to
I'm trying to create a standard way of rolling out web applications for our

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.