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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:49:18+00:00 2026-05-15T01:49:18+00:00

I have set a value in spinner , from activity-1. now i am traversing

  • 0

I have set a value in spinner , from activity-1.
now i am traversing to activity-2 and again coming back to activity-1, i am not getting the updated spinner value which i have selected previously but i am getting default value(value at index 1) of spinner .

  • 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-15T01:49:19+00:00Added an answer on May 15, 2026 at 1:49 am

    An Activity that becomes inactive (invisible to a user) can be destroyed by the system in case of lacking resources. To keep values between Activity runs you need to save your state using Bundles. If you look closely to Activity::onCreate method you can see it has a parameter:

    protected void onCreate (Bundle savedInstanceState)
    

    So, eg in method onPause() you save your desired values and when Activity is recreated – load them.

    Android documentation contains a chapter how to save states between Activity runs.

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

Sidebar

Related Questions

I have one spinner in which I have set the value through an Adapter
I have a SelectItem object which has a few items. I set a value
I have set of value in float (always less than 0). Which I want
I have set a dynamic value in a spinner . I am using following
i have developed one app.here i have to parse the value from one activity
I have a spinner which is populated from an Enum: public enum Frequencies {
I have :set hlsearch as default value. When I search for something, search terms
I have been trying to set the value of a hidden input by using
I have a parameter @Department and set its value in the Dataset to =Join(Parameters!Department.Value,,)
I have a datagrid and I want to set the value of a dropdownlist

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.