Login Registration SQlite Detail
Here in this project you can store your Data in SQLite through Registration and then use this data as login, 💥
Create table user_detail(serial_number INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER , email_address text , user_password text, user_status INTEGER "
public void insert (Integer user_id , String email_address , String user_password, Integer user_status)
public Cursor alldata()
if (s1.equals("" )|| s2.equals("") || s3.equals("")) {
Toast.makeText(getApplicationContext(), "Fill upper Fields First ", Toast.LENGTH_SHORT).show();
}else if(!s2.toString().equals( s3.toString())) {
Toast.makeText(getApplicationContext(), "Password Does not match", Toast.LENGTH_SHORT).show();
}else {
Boolean check_email = db.check_email(s1);
if (check_email == false){
Toast.makeText(getApplicationContext(), "Email Already Exists ", Toast.LENGTH_SHORT).show();
}else
Toast.makeText(getApplicationContext(), "New User Added ", Toast.LENGTH_SHORT).show();
db.insert(0, s1, s2, 1 );
}
Cursor cursor = db.alldata();
for (int i=0 ; i<cursor.getCount();i++)
if ((ema.equals(cursor.getString(2).toString())) && (pass.equals(cursor.getString(3).toString())))
Copyright © 2019-2020, Muhammad Kashif. Released under the MIT License.
More Projects 💪 💪 💪