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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:18:27+00:00 2026-06-10T01:18:27+00:00

I have an editText, How do I get the text typed in it by

  • 0

I have an editText, How do I get the text typed in it by the user ?

example, this is my editText

<EditText
   android:id="@+id/editText3"
   android:layout_width="match_parent"
   android:layout_height="wrap_content" 
   android:maxLength="10">
</EditText>

and the user typed Hi, in my next Activity how do I make if the user typed Hi show in the next Activity Hello.. etc if the user typed How are you next activity it shows I’m fine ?

What do I use? and is it related to Database ?

  • 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-10T01:18:29+00:00Added an answer on June 10, 2026 at 1:18 am

    First, pick up the text in the current activity, i.e. the activity where the view hosts the EditText component.

    EditText txt = (EditText)findViewById(R.id.editText3);
    String input = txt.getText().toString();
    

    Now, add it as an extra data and call your new activity.

    Intent i = new Intent(getApplicationContext(), NewActivity.class);
    i.putExtra("input",input);
    startActivity(i);
    

    In NewActivity inside onCreate() :

    Intent i = getIntent();
    String input = i.getStringExtra("input");
    

    and, voila, you have the entered text in the new activity.

    To set this to the new TextView :

    TextView txtView = (TextView)findViewById(R.id.yourTextView);
    txtView.setText(input);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have EditText in my XML as <!-- Inside RelativeLayout --> <EditText android:id=@+id/edtEmail android:layout_width=match_parent
I have a edittext which the user enters some text into Once they press
i have an EditText, and for every lettle the user type in this editText
I have an EditText which takes a String from the user and a searchButton.
I have a edittext in which some text are selected . I want to
I have created a list. And I need to get the text on the
I have been trying to get my EditText box to word wrap, but can't
I have this code and I'd really liek to be able to get the
This is what I have: import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import
I have an EditText which when some text entered the virtual keyboard appears and

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.