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

  • Home
  • SEARCH
  • 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 8080469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:25:23+00:00 2026-06-05T16:25:23+00:00

Let’s start with the Hello World program detailed at http://developer.android.com/resources/tutorials/hello-world.html . Let’s add the

  • 0

Let’s start with the Hello World program detailed at http://developer.android.com/resources/tutorials/hello-world.html .

Let’s add the file res/values/arrayfile.xml . Unfortunately, Stack Overflow refuses to display the tags, so I’ll describe what’s in this file. There are two string-arrays, one named “trees” and one named “bondactors”. The items under the singers category are (in order): “oak”, “willow”, “maple”, and “birch”. The items under the bondactors category are (in order): “Sean Connery”, “George Lazenby”, “Roger Moore”, “Pierce Brosnan”, and “Daniel Craig”.

Let’s modify the HelloAndroid.java file so that it can display any of the items listed in res/values/arrayfile.xml .

How do I get the Android app to print “Pierce Brosnan” in place of “Hello, Android”?

  • 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-05T16:25:25+00:00Added an answer on June 5, 2026 at 4:25 pm

    Refer: http://developer.android.com/guide/topics/resources/string-resource.html

    Resources res = getResources();
    String[] bondactors = res.getStringArray(R.array.bondactors_array);
    

    Best of luck.

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

Sidebar

Related Questions

Let say I've this URL: http://example.com/image-title/987654/ I want to insert download to the part
Let's say I have the string: hello world; some random text; foo; How could
Let me start by telling you that I never used anything besides SVN and
Let's say I have this code: <p dataname=description> Hello this is a description. <a
Let say I have some code HTML code: <ul> <li> <h1>Title 1</h1> <p>Text 1</p>
Let's say you create a wizard in an HTML form. One button goes back,
Let's say I have this HTML: <div> <div class=ClassA></div> <div class=ClassX></div> <div class=ClassB></div> <div
Let's say I have an (x,y) that is always the same for the start
Let's consider the following scenario: a function which can generate code colors from white
Let's say i have two tables in db: Car and Part. Car owns arbitrialy

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.