Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MaxMoneyNewApplication
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Amir Firdaus bin Samsudin
MaxMoneyNewApplication
Commits
0ad58127
Commit
0ad58127
authored
Dec 18, 2018
by
varunsingh2324@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Registration form update
parent
1c69d1db
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
22 deletions
+32
-22
LoginActivity.java
...mobile/maxmoneynewapplication/Activity/LoginActivity.java
+2
-2
RegisterActivity.java
...ile/maxmoneynewapplication/Activity/RegisterActivity.java
+25
-17
BasedURL.java
...va/com/mobile/maxmoneynewapplication/Common/BasedURL.java
+3
-3
activity_register.xml
app/src/main/res/layout/activity_register.xml
+2
-0
No files found.
app/src/main/java/com/mobile/maxmoneynewapplication/Activity/LoginActivity.java
View file @
0ad58127
...
...
@@ -87,9 +87,9 @@ public class LoginActivity extends AppCompatActivity {
editText_password
=
findViewById
(
R
.
id
.
editText_password
);
button_login
=
findViewById
(
R
.
id
.
button_login
);
editText_email
.
setText
(
"sa@maxmoney.com"
);
/*
editText_email.setText("sa@maxmoney.com");
editText_password.setText("MaxMoney@2016");
*/
//setfont
setFontTextView
(
textView_signIn
,
textView_email
,
textView_password
,
textView_copyRight
,
textView_forgotPassword
,
textView_signup
);
setFontEditText
(
editText_email
,
editText_password
);
...
...
app/src/main/java/com/mobile/maxmoneynewapplication/Activity/RegisterActivity.java
View file @
0ad58127
...
...
@@ -67,7 +67,7 @@ public class RegisterActivity extends AppCompatActivity {
textView_state
,
textView_postol
,
textView_city
;
TextView
textView_dateofexpiry2
,
textView_dateofbirth2
;
String
phoneNumber
=
""
;
Spinner
spinner_accType
,
spinner_idType
,
spinner_state
;
SearchableSpinner
spinner_nationality
,
spinner_phoneno
;
...
...
@@ -78,7 +78,7 @@ public class RegisterActivity extends AppCompatActivity {
Button
register
;
private
DatePickerDialog
.
OnDateSetListener
dateExpiryListerner
;
//
private DatePickerDialog.OnDateSetListener dateExpiryListerner;
private
DatePickerDialog
.
OnDateSetListener
dateBirthListerner
;
...
...
@@ -167,8 +167,8 @@ public class RegisterActivity extends AppCompatActivity {
e
.
printStackTrace
();
}
/*
//date picker
textView_dateofexpiry2
.setOnClickListener(new View.OnClickListener() {
//date picker
/* editText_dateofbirth
.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Calendar cal = Calendar.getInstance();
...
...
@@ -178,12 +178,12 @@ public class RegisterActivity extends AppCompatActivity {
DatePickerDialog dialog = new DatePickerDialog(
RegisterActivity.this,
android.R.style.Theme_Holo_Light_Dialog_MinWidth,
dateExpiryListerner,
//
dateExpiryListerner,
year,month,day);
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
dialog.show();
}
});
*/
});
dateExpiryListerner = new DatePickerDialog.OnDateSetListener() {
@Override
...
...
@@ -204,11 +204,12 @@ public class RegisterActivity extends AppCompatActivity {
String date = newDay + "-" + newMonth + "-" + year;
textView_dateofexpiry2.setText(date);
}
};
};
*/
/* textView_dateofbirth2
.setOnClickListener(new View.OnClickListener() {
editText_dateofbirth
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
Calendar
cal
=
Calendar
.
getInstance
();
int
year
=
cal
.
get
(
Calendar
.
YEAR
);
int
month
=
cal
.
get
(
Calendar
.
MONTH
);
...
...
@@ -240,9 +241,9 @@ public class RegisterActivity extends AppCompatActivity {
newMonth
=
String
.
valueOf
(
month
);
}
String
date
=
newDay
+
"-"
+
newMonth
+
"-"
+
year
;
textView_dateofbirth2
.setText(date);
editText_dateofbirth
.
setText
(
date
);
}
};
*/
};
//end date picker
register
=
findViewById
(
R
.
id
.
button_register
);
...
...
@@ -254,7 +255,7 @@ public class RegisterActivity extends AppCompatActivity {
mProgressDialog
.
show
();
if
(
editText_fullname
.
getText
().
toString
().
equals
(
""
)
||
editText_email
.
getText
().
toString
().
equals
(
""
)
||
editText_mobile
.
getText
().
toString
().
equals
(
""
)
||
editText_idNo
.
getText
().
toString
().
equals
(
""
)
||
editText_mobile
.
getText
().
toString
().
equals
(
""
)
||
editText_mobile
==
null
||
editText_mobile
.
getText
().
toString
().
length
()
<
5
||
editText_idNo
.
getText
().
toString
().
equals
(
""
)
||
editText_address
.
getText
().
toString
().
equals
(
""
)
||
editText_postolcode
.
getText
().
toString
().
equals
(
""
)
||
editText_city
.
getText
().
toString
().
equals
(
""
)){
mProgressDialog
.
dismiss
();
...
...
@@ -268,8 +269,8 @@ public class RegisterActivity extends AppCompatActivity {
String
idType
=
spinner_idType
.
getSelectedItem
().
toString
();
String
idNo
=
editText_idNo
.
getText
().
toString
();
String
country
=
country_name
;
String
dob
=
textView_dateofbirth2
.
getText
().
toString
();
String
dateExpiry
=
textView_dateofexpiry2
.
getText
().
toString
();
String
dob
=
editText_dateofbirth
.
getText
().
toString
();
//
String dateExpiry = textView_dateofexpiry2.getText().toString();
String
address
=
editText_address
.
getText
().
toString
();
String
state
=
spinner_state
.
getSelectedItem
().
toString
();
String
postalCode
=
editText_postolcode
.
getText
().
toString
();
...
...
@@ -309,7 +310,7 @@ public class RegisterActivity extends AppCompatActivity {
System
.
out
.
println
(
pe
.
toString
()
);
}
String
date_birthday
=
yyyy
.
format
(
actualDate
);
textView_dateofbirth2
.
setText
(
date_birthday
);
editText_dateofbirth
.
setText
(
date_birthday
);
}
private
void
setPassportDateExpiry
(
Bundle
arguments
)
{
...
...
@@ -494,7 +495,7 @@ public class RegisterActivity extends AppCompatActivity {
public
void
register
(
final
String
idType
,
final
String
idNo
,
final
String
customerName
,
final
String
email
,
final
String
mobile
,
final
String
address
,
final
String
city
,
final
String
state
,
final
String
postalCode
,
final
String
country
,
final
String
nationality
,
final
String
type
,
final
String
dob
,
final
String
registeredThrough
){
HashMap
<
String
,
String
>
user
=
session
.
getUserDetails
();
final
String
email_online
=
user
.
get
(
PreferenceManagerLogin
.
KEY_EMAIL
);
//
final String email_online = user.get(PreferenceManagerLogin.KEY_EMAIL);
NukeSSLCerts
.
nuke
();
StringRequest
stringRequest
=
new
StringRequest
(
POST
,
BasedURL
.
ROOT_URL_API
+
"v1/customers"
,
...
...
@@ -513,7 +514,14 @@ public class RegisterActivity extends AppCompatActivity {
next
.
putExtra
(
"idNo"
,
idNo
);
next
.
putExtra
(
"idType"
,
idType
);
next
.
putExtra
(
"email"
,
email
);
next
.
putExtra
(
"mobile"
,
mobile
);
for
(
int
i
=
0
;
i
<
spinner_phoneno
.
getSelectedItem
().
toString
().
length
();
i
++){
char
c
=
spinner_phoneno
.
getSelectedItem
().
toString
().
charAt
(
i
);
// returns 'l'
if
(
c
==
' '
){
phoneNumber
=
spinner_phoneno
.
getSelectedItem
().
toString
().
substring
(
0
,
i
);
phoneNumber
=
phoneNumber
.
trim
();
}
}
next
.
putExtra
(
"mobile"
,
phoneNumber
+
""
+
editText_mobile
.
getText
().
toString
());
startActivity
(
next
);
}
}
catch
(
JSONException
e
)
{
...
...
app/src/main/java/com/mobile/maxmoneynewapplication/Common/BasedURL.java
View file @
0ad58127
app/src/main/res/layout/activity_register.xml
View file @
0ad58127
...
...
@@ -374,6 +374,8 @@
android:layout_marginTop=
"10dp"
android:background=
"@drawable/xml_edit_text_register"
android:hint=
"DD-MM-YYYY"
android:clickable=
"true"
android:focusable=
"false"
android:inputType=
"textPersonName"
android:paddingLeft=
"8dp"
android:textColor=
"@android:color/black"
/>
...
...
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