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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:59:55+00:00 2026-06-15T12:59:55+00:00

Possible Duplicate: How to make an android app return to the last open activity

  • 0

Possible Duplicate:
How to make an android app return to the last open activity when relaunched?

I’m converting my iOS App to Android.
In iOS I used NSUserDefaults to save the last view used so it will return on that view after the app has been closed.
For Android I would like to do the same.

This is what I’m trying to achieve:

User navigates to a specific Activity > App saves activity in memory > User quits App > User Starts App again > User sees the last used activity again.

Where should I start looking for? Is there a simple way to achieve my goal?

  • 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-15T12:59:57+00:00Added an answer on June 15, 2026 at 12:59 pm

    Yes,you can save last activity’s name in the shared preferences.
    It is nicely explained here.

    Hope this will solve your problem 🙂

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

Sidebar

Related Questions

Possible Duplicate: How can I make a horizontal ListView in Android? I have used
Possible Duplicate: Android integrate google+ in app How to make google + integrate in
Possible Duplicate: Make iPhone app paid version replace free version on install from app
Possible Duplicate: How to make return key on iphone make keyboard disappear? I have
Possible Duplicate: Platform independent paths in Java I make a program but it save
Possible Duplicate: How to make a phone call in android and come back to
Possible Duplicate: Android - shadow on text? How can i make shadow effect text
Possible Duplicate: Android access to remote SQL database I am going to make android
Possible Duplicate: Android App high cpu-usage I am programming a app that has to
Possible Duplicate: reading a specific file from sdcard in android I'm trying to make

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.