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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:40:26+00:00 2026-06-17T12:40:26+00:00

The functionality of my app can be modeled after something like wanelo . The

  • 0

The functionality of my app can be modeled after something like wanelo.

The user will enter a search term for what they want to buy in one Activity. They will get presented with a list of items that match that search term. So, the ListView will contain Items. An Item has many attributes, the main ones being:

  • id – corresponds to the Item‘s id in a database
  • date_modified – timestamp to know whether the Item was updated
  • remote_directory – a URL to the base directory of the Item‘s assets like icon and other images. The URL is formatted like this: http://my.domain.com/items/a1bc234d/ where a1bc234d is randomly generated, seeded by date_modified.
  • remote_dir_name – a substring of remote_directory. From the example above, this value would be a1bc234d.

From the list of search results, the user can mark an item to be viewed later. This will trigger a couple of things:

  • First, I want to ad the Item to a different ListView that represents the Items the user has “downloaded”.
  • Then, I want to actually download of all of the Item‘s data: description, all assets in remote_directory. These things get stored my app’s internal storage in folders remote_dir_name: /data/data/my.app.package.name/files/a1bc234d/.

These “downloaded” items are meant to be viewable in offline mode.

This “downloaded” ListView corresponds to a different Activity and will have list items that show a progress bar of the download status for an Item. Also, this ListView should be editable: use should be able to delete and re-order the Items in the list.

Finally, the “downloaded” ListView needs to be persistent. It should preserve order. The ListView of search results need not persist.

I’m having a lot of trouble figuring out how to store the list of Items getting downloaded. The “download” ListView needs to know when to update a list item’s progress bar if it’s getting downloaded. I think it’s a little overkill to store the Items in a database because I’ll be constantly updating a row’s column until the download finishes. How should I pass this download status information between these two ListViews?

  • 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-17T12:40:27+00:00Added an answer on June 17, 2026 at 12:40 pm

    I am not entirely sure I am grasping the whole picture here, but it seems to me that you need two ArrayList fields.

    List<Item> downloadedItems = new ArrayList<Item>;
    List<Item> searchItems = new ArrayList<Item>;
    

    then what you need to do is create your own custom ListAdapter for the DownloadListView and create your own custom download_item.xml that you will inflate inside of the ListAdapter. In your case it sounds like this download_item.xml will consist of a textview, and a progressbar, and will need the containing (or top layer) layout set to wrap content.

    Now in the on click listener for the SearchListView set it so that it will call a function that will take the item that was tapped and add it to the downloadedItems ArrayList and start the download, as well as refresh the listadapter dataset so it knows to update the items in the list.

    The download should be in a AsyncTask, and you will want to use the @Override publishProgress() portion of this, so that you can update the status of the download bar.

    forgive me for any mis sights or mistakes, I just woke up.

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

Sidebar

Related Questions

There is functionality in my app where a user can set multiple reminders. But
I am trying to add email functionality to my app. I can get the
I want to create a simple login functionality in WP7 app using remote MySQL
Hi I'm trying to integrate an LDAP search functionality into my app similar to
I'm trying to add the functionality to my app so I can update my
I'd like to implement a functionality in an app of mine, but I don't
In my android i app i can alarm functionality and as well logout functionality.
I have a Mac app that can double as a screensaver (a minor functionality,
In my app the functionality required is similar to contact form. I want that
I'm implementing simple drag-and-drop functionality in my app, and I would like to know

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.