Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CarRental_Christopher_Foster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
christopher.foster
CarRental_Christopher_Foster
Commits
33719a2a
Commit
33719a2a
authored
May 13, 2020
by
christopher.foster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Login somewhat functional
parent
989e16e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
DBConnector.java
app/src/main/java/com/example/assignment/DBConnector.java
+1
-0
MainActivity.java
app/src/main/java/com/example/assignment/MainActivity.java
+1
-0
No files found.
app/src/main/java/com/example/assignment/DBConnector.java
View file @
33719a2a
...
...
@@ -71,6 +71,7 @@ public class DBConnector extends SQLiteOpenHelper {
}
public
String
finduser
(
String
username
)
{
//error somewhere in this method
String
string
=
null
;
String
query
=
"Select * FROM "
+
TABLE_Users
+
" WHERE "
+
COLUMN_UserName
+
" = \""
+
username
+
"\""
;
...
...
app/src/main/java/com/example/assignment/MainActivity.java
View file @
33719a2a
...
...
@@ -49,6 +49,7 @@ public class MainActivity extends AppCompatActivity {
handler
.
addNewUser
(
Name
.
getText
().
toString
(),
UserName
.
getText
().
toString
(),
Password
.
getText
().
toString
());
//Error Here
// Toast.makeText(getApplicationContext(),
// "registration complete\n" + handler.finduser(UserName.getText().toString()), Toast.LENGTH_LONG).show();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment