Commit 989e16e2 authored by christopher.foster's avatar christopher.foster

Login somewhat functional

parent a0e1f704
......@@ -23,7 +23,7 @@ public class DBConnector extends SQLiteOpenHelper {
@Override
public void onCreate (SQLiteDatabase db)
{
String CREATE_table = "CREATE TABLE " + TABLE_Users + "(" + COLUMN_ID + "INTEGER PRIMARY KEY, " + COLUMN_Name + " TEXT, " + COLUMN_UserName + " TEXT, " + COLUMN_Password + " INTEGER " + ")";
String CREATE_table = "CREATE TABLE " + TABLE_Users + "(" + COLUMN_ID + " INTEGER PRIMARY KEY, " + COLUMN_Name + " TEXT, " + COLUMN_UserName + " TEXT, " + COLUMN_Password + " INTEGER " + ")";
db.execSQL(CREATE_table);
}
......
......@@ -49,8 +49,8 @@ public class MainActivity extends AppCompatActivity {
handler.addNewUser(Name.getText().toString(), UserName.getText().toString(), Password.getText().toString());
Toast.makeText(getApplicationContext(),
"registration complete\n" + handler.finduser(UserName.getText().toString()), Toast.LENGTH_LONG).show();
// Toast.makeText(getApplicationContext(),
// "registration complete\n" + handler.finduser(UserName.getText().toString()), Toast.LENGTH_LONG).show();
}
public void loginBtn (View v)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment