Click here to Skip to main content
13,090,178 members (49,380 online)
Rate this:
Please Sign up or sign in to vote.
I am doing a small program in android, I am able to store the data through the registration page into the database and after the user logged in I can display the particular details.

And now I am trying that, if user wants to modify his data, he is able to replace the original values in the database, for this I used a button, when the user pressed the button again the registration page have to come with the user details and when he modifies and presses the submit button the old record should delete and the new values shall store in with same id. and i have one more requirement, that is to restrict the existing username. For this i used a search method and store the values in cursor, and now i don't know how to compare the username with the cursor values.
Posted 8-Feb-12 1:17am
Updated 8-Feb-12 5:12am
SAKryukov 13-Feb-12 0:56am
Where is the question?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Are you saying you don't know how to write the SQL to do an update in the database ? Here.[^]

If that's not it, please explain and post some code.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

<a href="">Using SQLite Database with Android</a>[<a href="" target="_blank" title="New Window">^</a>]

i gone through the this link and here u can find a sample code do all the operations like add,search,modify and delete....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100