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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:52:32+00:00 2026-06-04T03:52:32+00:00

I would like to schedule a phone call on an android application. I currently

  • 0

I would like to schedule a phone call on an android application.

I currently have an onClick event for a button to make a phone call, I also have time and date picker and would like to be able to use them to schedule a time to make the call.

Any help would be appreciated.

main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    xmlns:android="http://schemas.android.com/apk/res/android">
    <TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Enter MSISDN Below" android:textAppearance="?android:attr/textAppearanceLarge"/>
    <EditText android:id="@+id/msisdn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:inputType="phone">
        <requestFocus />
    </EditText>
    <TextView android:id="@+id/textView2" android:layout_width="344dp" android:layout_height="wrap_content" android:text="Enter Schedule Time Below" android:textAppearance="?android:attr/textAppearanceLarge"/>
    <TimePicker android:id="@+id/timePicker1" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
    <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Set Call" android:onClick="makeCall"/>

</LinearLayout>

******** Class *************************

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

public class CallAppActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    public void makeCall(View view) {
          Intent callIntent = new Intent(Intent.ACTION_CALL);
            callIntent.setData(Uri.parse("tel: 123456789"));
            startActivity(callIntent);
    }
}
  • 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-04T03:52:34+00:00Added an answer on June 4, 2026 at 3:52 am

    Don’t worry I figured it out. In case anyone is interested, I used a Handler to delay the intent action call.

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

Sidebar

Related Questions

I have an Outlook 2003 macro written in VBA. I would like to schedule
I would like to be able to schedule a task at a specific time
I have 5 files that I would like to schedule to run monthly in
So I have an R file that I would like to schedule to run
I have a decent working web application (Java/Servlet/Jsp) that I would like to improve
In my application I have an Application and several Activities. I would like to
I would like to schedule a auto-power on when android is power off totally
I would like to use Linq to query a bus schedule in my project,
I am displaying a radio schedule in a List View and would like to
I'm using the CCNode class in cocos2d and would like to use its schedule:interval:

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.