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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:57:03+00:00 2026-05-28T02:57:03+00:00

I have a Activity that pulls an Array from the previous Activity . I

  • 0

I have a Activity that pulls an Array from the previous Activity. I can use this code below which gets the Array from the previous Activity and puts it into a TextView.

Update using initWheel(R.id.passw_1, names.toArray(new String[names.size()])); fixed the problem

ArrayList<String> names = intent.getStringArrayListExtra("KEY");

    TextView et2 = (TextView) findViewById(R.id.editText2);
    et2.setText("");
    if (names.size() > 0) {
        for (String str : names) {
            et2.append(str + "    ");
        }
    }

This works fine but is not what I need exactly. Instead of it populating a TextView I need it to fill a String which is like this

initWheel(R.id.passw_1, "ArrayList Here");

I have another which will be set by default in the code that looks like this and I need the array to populate the one above in the same format:

initWheel(R.id.passw_2, new String[] { "Foo", "Bar" });

  • 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-28T02:57:04+00:00Added an answer on May 28, 2026 at 2:57 am

    I think you are asking about getting string array from arraylist, if so please use following method:

    String[] strArr = list.toArray();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an activity that pulls a String Array from xml and displays a
I have an activity that calls the new SimpleCursorAdapter(this, R.layout.notes_row, c, from, to); setListAdapter(notes);
I have an Activity that pulls an object from an Application extended class (application
This seems like a simple problem: I have a WF4 activity that guides the
I have created a custom workflow activity that copies attachments from a case to
I have activity A that starts activity B which starts activity C: A ->
I currently have an Activity that when it gets displayed a Notification will also
Is there a way to start an activity from a view? I have this
I have a activity that extends listactivity, extended in this class i have a
i have made an app that would calculate numbers from input fields. **main Activity

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.