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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:56:18+00:00 2026-05-22T14:56:18+00:00

I have a ListView in my Android app that shows items from a string-array

  • 0

I have a ListView in my Android app that shows items from a string-array in my strings.xml. The app I am making is a basic project management app, and I have two activities: the main ListView, and the task addition view that has a some buttons, EditTexts, date pickers, etc. I would like to add an item to the string-array each time that the user adds a task with the task name, and then when the user presses that entry, a Toast comes up with the due date. How would I go about doing this?

Thanks.
(I would put my code here, but unfortunately the formatting is completely messed up when I copy and paste.)

Clarification:
User goes to Task Addition page from main view.
User types in Name, Date, Etc.
Name appears in ListView of tasks.

Can I post a zip of all my code since I have 6 or 7 files?

  • 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-22T14:56:19+00:00Added an answer on May 22, 2026 at 2:56 pm

    I don’t think you can make edits to anything in your res folder at runtime, including the strings.xml. You are going to need to store your tasks in some other manner. You can use an SQLite database or Shared Preferences or write a file to internal or external storage. Which will work best depends on what exactly you are trying to accomplish. Perhaps if you could elaborate on what you are doing, or even post some of the code that you are currently using we could make a more specific suggestion.

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

Sidebar

Related Questions

I have an app that is available from the Android Market. Some users have
i have a ListView that simly shows items on it. I want to load
My android app works on landscape mode. I have a listview that contains some
I'm writing an Android app that is basically a ListView populated with an array
I have a query in my android app that pulls all image paths from
I have an android listview filled with items. Every item has a button. This
It seems that android has enforced that a listview must have the name android:id=@android:id/list,
I have a ListView in WPF that is databound to a basic table that
I have an android-app with a listview in an activity. The listview has, if
I have android app that talks to server and syncs some data int SQLite

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.