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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:57:53+00:00 2026-06-11T10:57:53+00:00

I asked this question before, but instead of explaining what is happening, I’m going

  • 0

I asked this question before, but instead of explaining what is happening, I’m going to ask how YOU would do this.

My goal:

I have 2 screens.

Screen 1:
(textview) –> “Choose your favorite number”
(spinner) –> drops down a list of numbers to choose from
(btnGo) –> starts a new intent and changes to screen 2

screen 2:
“Your favorite number is:(whatever you selected on the spinner)”

I’ve tried different ways but i cannot retrieve the information from the spinner after the screens change.

So how would you do this?
As much detail as possible please.

  • 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-11T10:57:55+00:00Added an answer on June 11, 2026 at 10:57 am

    you can use like this:

    In Screen-1 on button click:

    Intent intent = new Intent(getApplicationContext(),SCREEN2.class);
    intent.putExtra("favoriteNumber",GET_SELECTED_SPINNER);
    startActivity(intent);
    

    In Screen-2 onCreate():

    String selectedFavorite = getIntent().getStringExtra("favoriteNumber");
    YOUR_TEXTVIEW.setText(selectedFavorite);
    

    Thatz it.

    Hope it will work for you.

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

Sidebar

Related Questions

I have asked this question before but did not get the satisfied answer as
I have asked this before but I didn't get the question right so the
I asked this question before but with less information than I have now. What
This question may have been asked before, but I'm starting to get into game
I'm well aware that variants of this question have been asked before, but I
i have asked this question before but no answer was there. so asking again.
I know similar permutations of this question have been asked before, but the answers
i have asked this question before but the answer received was not applicable in
I realize this question is very likely to have been asked before, but I've
I asked this question before but I'm going to complete the question with a

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.