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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:37:10+00:00 2026-05-16T08:37:10+00:00

I have a ListActivity which lists a bunch of things. If you click on

  • 0

I have a ListActivity which lists a bunch of “things.” If you click on one of these “things,” you’re taken to another ListActivity which lists a bunch of “stuff” for that “thing.”

Say I want to give the user the ability to edit the name of some of the “stuff”; or even delete some of the “stuff.” At what point should I actually perform that action on my database?

Ex: If a row of “stuff” gets deleted, should the database be updated before I return my user to the list of “things?” Or should the user return to the list of “things” and then the database is updated? Or does it not matter?

Mind you the database updating will likely happen in a service (I’ll also be calling a web service to update the cloud).

  • 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-16T08:37:11+00:00Added an answer on May 16, 2026 at 8:37 am

    I would do the database transaction after the user is finished messing with it, only because I would want to give them some way to undo an accidental deletion before committing it to the database.

    Edit: See jball’s answer. He understood you better than I did.

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

Sidebar

Related Questions

I have a ListActivity which has an adapter that crashes. Here is the code
I have a TabActivity which loads 2 ListActivity in 2 Tabs. When I click
I have a ListActivity which shows list of items. I prepared another layout for
I have a ListActivity which launches another Activity based on the list selection. This
I have a activity (ListActivity) in which if a user click on a button,
I have an activity which extends ListActivity. It has many things but amongst them
I have one android activity which extends ListActivity. Every time list items is pressed
I have a customized TabView which displays a ListActivity , but everytime I click
I have a ListActivity in which i have used a SimpleAdapter to create a
I have two ListActivity classes that I want to pass into into a third

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.