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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:10:59+00:00 2026-06-17T06:10:59+00:00

On my app I see having multiple activities… Main | ——————– Login | |

  • 0

On my app I see having multiple activities…

            Main
              |
     --------------------
   Login                 |
     |                   |
     --------------- Dashboard
                         |
     -----------------------------------------
     |                   |                   |
 Activity1           Activity2            Activity3

If a user is logged in, it will bypass login and head straight to dashboard. Then I see the dashboard launching other activities. Currently, my main activity looks like:

public class MainActivity extends Activity {
    User user = null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        startActivity(new Intent(this, LoginActivity.class));
    }
}

I’ve tried to find sample code showing how to pass data from my login activity back to Main, but I’ve been struggling. I can find many examples of how to pass data from a parent activity to a child activity, but not the other way around.

PS – If I’m not on the right track with my app, please let me know!

  • 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-17T06:11:01+00:00Added an answer on June 17, 2026 at 6:11 am

    Have you looked into startActivityForResult?

    Please see this tutorial:
    http://www.mybringback.com/tutorial-series/12186/android-startactivityforresult-example/

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

Sidebar

Related Questions

Im making an app that should let the user see video from the camera
I am trying to see if the user has internet connection when the app
I want to check to see if a user has rated my app on
I'm working on an app which spawns multiple threads on user-customizable intervals in order
In my app I see terrible performance when I add some custom components to
So I was playing with my MS SQL Server 2008 app to see how
I see some app on Play Store, when install these apps auto add an
I wrote an CLLocationManager ios app. However, I cannot see my app appears in
I install windows phone 7.1 sdk. And then I cant see phone app.in VS10
Possible Duplicate: launch facebook app from other app I'm looking to see if it

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.