Use Room library for SQLite database. second, you cannot get the device IMEI Number programmatically. First Create A Registration form and add three edit text there, One for USERNAME, Second for PASSWORD, and third for IMEI. Store these three details in the SQLite database and you can easily authenticate the user with IMEI and Password or USERNAME and password