Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Android Sqlite
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 2:17am
Edited 8-Feb-12 6:12am
SAKryukov at 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
0 Maciej Los 475
1 OriginalGriff 425
2 Sascha Lefévre 289
3 CPallini 285
4 CHill60 260
0 Sergey Alexandrovich Kryukov 9,773
1 OriginalGriff 9,290
2 Peter Leow 5,137
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,036

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2015
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