 <p>Quick suggestion add id as primary key column to users table. Then get that id after new record is inserted and save that id in SharedPreferences, then when ever required you can pull record from users table like using WHERE <code>id</code> = my_id_save. Here is example <a href="http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/" rel="nofollow">http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/</a></p>