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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:11:03+00:00 2026-06-10T03:11:03+00:00

I have the below code: ArrayList NumList = getIntent().getParcelableArrayListExtra (number); ArrayList MailList = getIntent().getParcelableArrayListExtra

  • 0

I have the below code:

   ArrayList NumList = getIntent().getParcelableArrayListExtra ("number");

   ArrayList MailList = getIntent().getParcelableArrayListExtra ("email");

    // This array list will be updated each time.

    mAdapter = new MyCustomAdapter();
    mAdapter.addItem(Name);

    if (!NumList.isEmpty()) {
        mAdapter.addSeparatorItem("Phone");
        mAdapter.addAll(NumList);
    }

    if (!MailList.isEmpty()) {
        mAdapter.addSeparatorItem("Email");
        mAdapter.addAll(MailList);
    }

    setListAdapter(mAdapter);
}

I want to be able to click on the list of numbers and call the selected number.

  • 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-10T03:11:04+00:00Added an answer on June 10, 2026 at 3:11 am

    I am guessing you are using a ListActivity or ListFragment, so implement your calling logic in onListItemClick or place an onClickListener on each of the views when you create them in your custom adapter like so:

    view.setOnClickListener (new OnClickListener() {
      public boolean onClick( View view) {
        //do your stuff here
      }
    });
    

    The logic for making a call looks like this:

    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:0123456789"));
    startActivity(callIntent);
    

    Edit:

    And remember add this CALL_PHONE permission to your Manifest:

    <uses-permission android:name="android.permission.CALL_PHONE" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a array list private ArrayList rps = new ArrayList(); now below code
I have the below java code: List<SomePojo> list = new ArrayList<SomePojo>(); //add 100 SomePojo
I have written such the code below that ; I have an array list
I have a simple code below: import java.util.ArrayList; public class BoidList extends ArrayList {
I have a question. What is wrong with regards to the below code: ArrayList
I have the below code ArrayList<String> city = 'Anniston'; Criteria crit = session.createCriteria(CandidateResumeInfo.class); crit.add(Restrictions.eq(resumeSearchable,
I am using below code : var list = new Collection<ArrayList> { new ArrayList
In the example code below, I have a question about the List. My prof
I have below code: <a href=# id=@item.Id name=vote ><img src=/Content/images/021.png style=float:left alt= /></a> which
I have below code: class Program { static void Main(string[] args) { Task[] tasks

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.