Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Find everything you need for the Galaxy S5 and discuss it in our S5 forum!
Have you seen that OnePlus One's awesome camera?? The forum is over here!

test: Reply
 
LinkBack Thread Tools
Old April 19th, 2011, 04:19 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Cursor Binding vs Object list Binding in android

Hello, i'm a newby in android development and i need some help with listview binding. I have read that the most effective way to use a listview binded to a datasource is to use a cursor which speaks directly to sqlite. I start my project using this method but i'm not able to face a critical for my application issue.

I need to change values of the binded list but those changes doesn't affect my database until user press save button. In c# i can do this in many ways like datatable or bindingsource objects.

For example, my app has a list with products with their prices. I want to change prices through a popup window which open from context menu. When the popup window close i need to display the new price in listview but i haven't save it into database yet. Finnaly when i have change prices of all products i want to press save button and update my database using a transaction.

Is there any way to succeed something like this using cursors for binding or i have to use lists of custom class objects?

Thanks in advanced and sorry for my bad usage of english.

bilias7 is offline  
Reply With Quote
sponsored links
Reply
Tags
binding, cursor, object list


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:15 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.