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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:23:23+00:00 2026-05-26T03:23:23+00:00

I am working in android. I am designing a file upload functionality. This is

  • 0

I am working in android. I am designing a file upload functionality.

This is my layout:

enter image description here

If I fill my entries like as title,price,category and then I press browse button for browse option then I go to BrowseActivity using startActivity(). But when I come back to this activity then all entries which were filled by me disappear. please suggest me what should I do for this so my entered entries save. If I do browse first then fill entries then it works properly.

What should I do for the case in which user first fill entries and then click on the browse button?

  • 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-26T03:23:24+00:00Added an answer on May 26, 2026 at 3:23 am

    Use the SharedPreferences options to save all the Strings in onPause(). You can get them back in onResume() and fill out your text boxes. This is also nice since you can save the values that were entered and restore them each time the user leaves the app for any other reason.

    EDIT:

    Quick example:

    Save your strings like so:

    @Override
    public void onPause(){
       super.onPause();
       // Save the user preferences during runtime for later use.
       SharedPreferences settings = getSharedPreferences("aName", MODE_PRIVATE);
       SharedPreferences.Editor editor = settings.edit();
       editor.putString("title", "Value of title");
       editor.commit();
    }
    

    Then you get get the value back like this.

    @Override
    public void onResume(){
       SharedPreferences settings = getSharedPreferences("aName", MODE_PRIVATE);
       String title = settings.getString("title");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in android. I am designing a program to upload a file
I am working in android. I am designing a program to download a file
I'm working on an Android app in which I would like to use multi-touch.
Html List tag not working in android TextView. This is my string content: String
I was working on an android project, and while designing i noticed something strange
We're designing an Android app that has several activities which are working in a
I am working android application my problem is i am using handlers this handler
i am working in android. i am designing an application which is based on
Working on android application, wanna add twitter feature to it , like after every
I'm working on android app development in which how get profiling information like Data

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.