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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:36:27+00:00 2026-05-31T22:36:27+00:00

I have a nicely working custom CursorAdapter with customized ListView. This view allows the

  • 0

I have a nicely working custom CursorAdapter with customized ListView. This view allows the user to play around with their UI by re-arranging the rows of the ListView. No problem (well, now after a lot of research and trial and error!).

But I don’t like having to hit the database every time the user moves one of these rows. They could be doing quite a bit of modifications. Furthermore, I would like the ability for the user to change their mind and cancel all their changes.

So I am wondering: is there a way to modify the contents of this ListView (ie, the orders of the rows) without having to change the database? That way I could update the database when the user clicks OKAY in one swoop and ignore those changes if they cancel.

Also with this theoretical technique, the user only has to wait ONCE for the AsyncTask to pop and do its database stuff instead of every single time they modify their list.

  • 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-31T22:36:29+00:00Added an answer on May 31, 2026 at 10:36 pm

    Use a custom class having all the members you need from the database. Create a ArrayList of the customClass object and fill it with the data from cursor retrieved from the database. Pass this arraylist to a CustomBaseAdapter and populate the listview. Modify the arraylist data according to the user reactions. Based on OK or CANCEL click update the corresponding data in the database.

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

Sidebar

Related Questions

So I have a nicely working UITableView consisting of 3 rows (each including and
I have a Java application which I want to shutdown 'nicely' when the user
I have never seen a way to do this nicely, i would be interested
I have FrameworkElements that have IsManipulationEnabled set to true, that's working nicely, but, there
I have a nicely working actionscript project in Flash Builder 4.5. However, I'd like
I have a setup project, its been working nicely for atleast a couple of
I have a nicely working extension for typo3 which fails for PHP 5.3: Core:
I have Ninject working nicely in an ASP.NET MVC3 web application. I'd like to
I'm working on a multiview app for iPhone and currently have my views (VIEW)
I have the following code working nicely: $field2.on(change, #selector, function(){ $field2.load(./index.php?show-options=true, { value: $(this).val()

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.