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

  • Home
  • SEARCH
  • 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 6202213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:41:33+00:00 2026-05-24T04:41:33+00:00

I want to retrieve the number available in the call log in android application.

  • 0

I want to retrieve the number available in the call log in android application.

I do not want to get all the call log and populate in my app activity. Instead I want to use existing android Intent to view and once selected the number from the list, I want the number back in my activity.

I guess I will have to use startActivityForResult for this. But what I am confused is what will be the code in this method. I want only the number.

Any help will be appreciated.

Regards,
Shankar

  • 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-24T04:41:34+00:00Added an answer on May 24, 2026 at 4:41 am

    ok, first from activity A you should create intent

    Intent i=new Intent(...);
    startActivityForResult(i,0)
    

    and on the activity B you do this

    Intent i1=getIntent();
    //here you put data
    i.putExtra("key","value");
    

    and than in the first activity, activity A you get your data like this
    in the method:

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data){
        super.onActivityResult(requestCode, resultCode, data);
        String dataINeeded=data.getExtra("key");
    }
    

    that’s it

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

Sidebar

Related Questions

I want to retrieve all objects (not DOM elements) of a given type created
I have a number of xml documents from which I want to retrieve all
How to get total number of albums of all facebook friends? I want to
I want to retrieve all records from one table when there are no matches
Say I have a sorted-set of integers, xs, and I want to retrieve all
I want to retrieve commit order number, counting ONLY commits of specific branch (master).
I have a string with a number inside and I want to retrieve that
I want to retrieve the own mobile number and the IMEI. How do I
I want to retrieve data from the database. The number of data is fixed
I want to call a web service of which URL is available to me.

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.