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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:46:25+00:00 2026-05-13T12:46:25+00:00

Have a question about sending data between classes and activities. I currently have a

  • 0

Have a question about sending data between classes and activities.

I currently have a class that monitors outgoing class and gets the number of an outgoing call.

I instantiate this class in my main Activity and run its method that retrieves the number.

However I now have another Activity that I want to pass the number to.

I start this Activity through an Intent from the class that gets the number.

So it works like this:

MainActiviy Starts > Starts Object that listens for outgoing call >
outgoing call detected > Object gets outgoing number > object fires
Intent to create new Activity after outgoing call logged and number
retrieved > new Activity displays

I hope that is a bit clearer?

So I want to send the number from the class (object) to the new Activity that it has started.

So what is the simplest way to do this?

  • 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-13T12:46:25+00:00Added an answer on May 13, 2026 at 12:46 pm

    Call putExtra() on the Intent you are using with startService(). Use putExtra() to store the phone number in the Intent. Use getExtra() in the service being started to retrieve the phone number.

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

Sidebar

Ask A Question

Stats

  • Questions 295k
  • Answers 295k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Okay... Silly problem. (I knew it would be). I've recently… May 13, 2026 at 6:51 pm
  • Editorial Team
    Editorial Team added an answer DateTime oneEightyAgo = DateTime.Today.AddDays(-180); May 13, 2026 at 6:51 pm
  • Editorial Team
    Editorial Team added an answer In my test assembly I have this defined in my… May 13, 2026 at 6:51 pm

Related Questions

((Answer selected - see Edit 5 below.)) I need to write a simple pink-noise
What are some strategies to achieve code separation in AJAX applications? I am building
Currently I have a simple IRC bot written in python. Since I migrated it
I challenge you :) I have a process that someone already implemented. I will
I'm attempting to implement this paper . I've have most of it down, but

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.