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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:26:33+00:00 2026-05-30T16:26:33+00:00

Hi am adding edit text field dynamically to the scroll view and then am

  • 0

Hi am adding edit text field dynamically to the scroll view and then am adding a text into the edit text and then i want to get back data into string array…for that i wrote a following code please suggest me how to get the data from edit text..`for(int i=0;i

            value=(EditText)row.findViewById(R.id.EditText01);
            Button sayit=(Button)row.findViewById(R.id.sayit);
            Button sentence=(Button)row.findViewById(R.id.sentences);   
            TextView positions=(TextView)row.findViewById(R.id.positions);
            TextView sentenc=(TextView)row.findViewById(R.id.sentence);

            positions.setText(String.valueOf(i));
            sentenc.setText(String.valueOf(i));



            sayit.setOnClickListener(new OnClickListener()
            {
                    @Override
                    public void onClick(View v) 
                    {
                        TextView t=(TextView)row.findViewById(R.id.positions);
                        String s=t.getText().toString();
                        int j=Integer.parseInt(s);
                        mTts.speak(field_wordsundvalue[j],TextToSpeech.QUEUE_FLUSH,null);
                    }
            });
            sentence.setOnClickListener(new OnClickListener()
            {
                    @Override
                    public void onClick(View v) 
                    {
                        TextView t1=(TextView)row.findViewById(R.id.sentence);
                        String s=t1.getText().toString();
                        int j=Integer.parseInt(s);
                        mTts.speak(field_sentencesundvalue[j],TextToSpeech.QUEUE_FLUSH,null);
                    }
            });             
        ll.addView(row);
        mylist.add(value);  
        }`
  • 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-30T16:26:35+00:00Added an answer on May 30, 2026 at 4:26 pm

    Following code is use to get the text from edit Text,

    String str = myEditText.getText().toString().trim();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have an edit control (a text field) which I want to animate. The
I am adding HTML input controls on the page dynamically via a add text
I am using the following code --- EDIT @annakata : Adding the complete code
does anyone know how you edit/maintain regions in magento - specifically adding ones for
I would like to allow the logged user to edit MediaWiki/Common.css without adding them
I am trying to do a simple task: I have an editable text field,
I'm adding some user feedback mechanism into my app. The user types some comments
I have these text fields which I generated dynamically. But I can't seem to
I want to display a prompt to get a user's username and password. I
I have a view with adding element to collection: It adds me element 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.