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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:54:17+00:00 2026-06-14T20:54:17+00:00

I have this scenario: Android app whit 4 activities: Activity1 : Login, call a

  • 0

I have this scenario:

Android app whit 4 activities:

  • Activity1 : Login, call a web service and retrieve data for the second activity ( stored it in an object) and switch to second activity.
  • Activity2 : Created with the object result of the webservice call, have a list item, onclick item call another web service and retrieve data for the third activity, then switch control to the third activity
  • Activity3 : Created with the object result of the webservice call, have a list item, onclick item call another web service and retrieve data for the fourth activity, then switch control to the fourth activity
  • Activity4 : Some data are displayed.

Every Activities except the first have two button, logout and back(if i’m in the activity3 i return to the activity2).

The back button is my problem. I don’t want to call the web service back to the activity. I want to store the result of every web service call in a structure and when i click on back i want to use this to repopulate the activity whit the same data.

Something have any suggestion?

  • 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-14T20:54:19+00:00Added an answer on June 14, 2026 at 8:54 pm

    I hope i understand what u want,
    You should implement Activity lifeCycle properly, When you open new activity onCreate,onStart and onResume are called, and when you go to next Activity onPause of previous activity is called and then onCreate of second activity is called, onResume ,onStart and then onStop is called from precious activity. and when you came back on first activity then onStart is called and then onResume . whats the different when you come back onCreate is not called, you can implement your webservice on onCreate so when you will come back onStart will call not onCreate so you webservice wont be call.
    Here is Activity lifeCycle link in case if you didnt understan what i said. another link

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

Sidebar

Related Questions

In my android app I have this scenario - I have a Gallery where
I am developing an android app which fetches/uploads data from/to the web service every
In my app, I have this scenario where I need to post an object
Consider this scenario. I have an object, lets call it.... Foo. Foo raises a
I just encountered the following situation. I have an Android app with a scenario
i have a scenario like this: I am developing an android peer to peer
In my android application the scenario is this - I have several images stored
I have service running in android to sync files when user wants. This is
Scenario: Making an Android app using data from a website built with Wordpress. The
I have the following scenario: An app for Android devices that has a few

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.