Click here to Skip to main content
Rate this: bad
good
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
v2
Comments
SAKryukov at 13-Feb-12 0:56am
   
Where is the question?
--SA
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

<a href="http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android">Using SQLite Database with Android</a>[<a href="http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android" 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....
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 519
2 Maciej Los 305
3 BillWoodruff 250
4 Mathew Soji 195
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2014
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