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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:38:33+00:00 2026-05-25T00:38:33+00:00

In my Android project, I launch an application from another one, by using an

  • 0

In my Android project, I launch an application from another one, by using an intent, in this way:

Intent intent = new Intent(Intent.ACTION_MAIN);
        intent.setComponent(new ComponentName("edu.dhbw.andar.sample","edu.dhbw.andar.sample.CustomActivity"));
        startActivity(intent);

And it works: the second application starts without problems.
Now, I wish to pass a text string from the first application to the second one. Is there a way to do that?

Thanks

  • 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-25T00:38:33+00:00Added an answer on May 25, 2026 at 12:38 am

    Put an extra String in the intent (using intent#putExtra()) and read it in the new application:

    In the first application:

    intent.putExtra("IdentifierForYourString", theString);
    

    In the second:

    getIntent().getStringExtra("IdentifierForYourString");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm searching for a way to password protect my android application on launch, i.e.
So I inherited this Android project from someone else. The code currently seems to
I made an android project using eclipse. It looks like: src/ ActivityMain.java lib/ Square.java
I can't compile my Android project for the Dalvik VM because of this error:
From past 1 hour,I am unable to launch my application on Eclipse-Helios and the
I have android application that I need to debug using eclipse. When I right
While creating a new android project in eclipse 3.5, i have selected Android 2.1
When I compile my Android Project I always get this Error: Error generating final
I got Calculator source code from google's android.git.kernel.org and successfully build the project without
I am developing an android application(using Eclipse 3.5.2, Android 2.2) where i need to

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.