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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:53:44+00:00 2026-05-25T06:53:44+00:00

I’m really new to android and I’ve created an app that has buttons which

  • 0

I’m really new to android and I’ve created an app that has buttons which lead to other activities where data is selected to be sent back to the main activity by an intent with extras.

When I’m done with the data gathering activity I call the finish() method to return back to my main activity.

The user may wish to revisit the information gathering activity to enter new data but it doesn’t matter if the previously entered data is not there when they return to the activity.

is this considered to be good or bad practice when writing an app?

Thanks,
M

  • 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-25T06:53:45+00:00Added an answer on May 25, 2026 at 6:53 am

    Depends on your application.

    If your application need a permament data like a options activity or a date enter activity you must to “save” the changes of your activity.
    There are a a easy form to do that with the Overryde methods:

    /**
     * Method onSaveInstanceState.
     * @param outState Bundle
     */
    @Override
    protected void onSaveInstanceState(Bundle outState) {
        outState.putBoolean("ISCALLSMS", isOnCallingSms);
        super.onSaveInstanceState(outState);
    }
    
    
    /**
     * Method onRestoreInstanceState.
     * @param savedInstanceState Bundle
     */
    @Override
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        if ( (savedInstanceState != null) && (savedInstanceState.containsKey("ISCALLSMS")) ){
            isOnCallingSms = savedInstanceState.getBoolean("ISCALLSMS");
        }
        super.onRestoreInstanceState(savedInstanceState);
    }    
    

    *This are a example of my app. Yoy should decide what data you need to save. There are other methods to save your data, this is only one of them.

    In other case, if your app dont need to save data its ok how you finish your activity

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a French site that I want to parse, but am running into

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.