Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Simmitive_Chris_Crook
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
chris.crook
Simmitive_Chris_Crook
Commits
74242472
Commit
74242472
authored
Apr 09, 2021
by
chris.crook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
> added more admin functionality
parent
30b6f87e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
AdminRegister.java
...java/com/example/summative_chris_crook/AdminRegister.java
+4
-4
activity_admin_register.xml
app/src/main/res/layout/activity_admin_register.xml
+2
-2
No files found.
app/src/main/java/com/example/summative_chris_crook/AdminRegister.java
View file @
74242472
...
@@ -27,10 +27,10 @@ public class AdminRegister extends AppCompatActivity {
...
@@ -27,10 +27,10 @@ public class AdminRegister extends AppCompatActivity {
public
void
createuser
(
View
view
){
public
void
createuser
(
View
view
){
//
//
String
name
=
((
EditText
)
findViewById
(
R
.
id
.
Name_input
)).
getText
().
toString
();
String
name
=
((
EditText
)
findViewById
(
R
.
id
.
name_input2
)).
getText
().
toString
();
String
user
=
((
EditText
)
findViewById
(
R
.
id
.
Username_input
)).
getText
().
toString
();
String
user
=
((
EditText
)
findViewById
(
R
.
id
.
username_input2
)).
getText
().
toString
();
String
pass
=
((
EditText
)
findViewById
(
R
.
id
.
Password_input
)).
getText
().
toString
();
String
pass
=
((
EditText
)
findViewById
(
R
.
id
.
password_input2
)).
getText
().
toString
();
String
conf
=
((
EditText
)
findViewById
(
R
.
id
.
Password_confirm
)).
getText
().
toString
();
String
conf
=
((
EditText
)
findViewById
(
R
.
id
.
password_confirm2
)).
getText
().
toString
();
if
(
name
.
equals
(
""
)){
if
(
name
.
equals
(
""
)){
Toast
.
makeText
(
getApplicationContext
(),
"Enter a Name"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
getApplicationContext
(),
"Enter a Name"
,
Toast
.
LENGTH_SHORT
).
show
();
return
;
return
;
...
...
app/src/main/res/layout/activity_admin_register.xml
View file @
74242472
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
android:text=
"Enter Name:"
/>
android:text=
"Enter Name:"
/>
<EditText
<EditText
android:id=
"@+id/name_input"
android:id=
"@+id/name_input
2
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:ems=
"10"
android:ems=
"10"
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
android:text=
"Confirm Password:"
/>
android:text=
"Confirm Password:"
/>
<EditText
<EditText
android:id=
"@+id/password_confirm"
android:id=
"@+id/password_confirm
2
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:ems=
"10"
android:ems=
"10"
...
...
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