Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public String getSinlgeEntry(String userName)
  2. {
  3. Cursor cursor=db.query("LOGIN", null, "USERNAME=?", new String[]{userName}, null, null, null);
  4. int data;
  5. data = cursor.getCount();
  6. if(cursor.getCount()<1) // UserName Not Exist
  7. {
  8. cursor.close();
  9. return "NOT EXIST";
  10. }
  11. cursor.moveToFirst();
  12. String password= cursor.getString(cursor.getColumnIndex("PASSWORD"));
  13. name = cursor.getString(cursor.getColumnIndex("NOMBRE"));
  14. correo = cursor.getString(cursor.getColumnIndex("CORREO"));
  15. cursor.close();
  16. return password;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement