Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AmritaOD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Android 2017
AmritaOD
Commits
eb2a1d02
Commit
eb2a1d02
authored
8 years ago
by
Saran Kumar
Browse files
Options
Downloads
Patches
Plain Diff
Saran
parent
85809121
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/peruse/saran/amritaod/actionareas/applyodActivity.java
+14
-3
14 additions, 3 deletions
...om/peruse/saran/amritaod/actionareas/applyodActivity.java
with
14 additions
and
3 deletions
app/src/main/java/com/peruse/saran/amritaod/actionareas/applyodActivity.java
+
14
−
3
View file @
eb2a1d02
...
@@ -66,7 +66,8 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
...
@@ -66,7 +66,8 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
CAMERA_REQUEST
=
2
,
CAMERA_REQUEST
=
2
,
startyear
=
calendar
.
get
(
Calendar
.
YEAR
),
startyear
=
calendar
.
get
(
Calendar
.
YEAR
),
startmonth
=
calendar
.
get
(
Calendar
.
MONTH
),
startmonth
=
calendar
.
get
(
Calendar
.
MONTH
),
startdate
=
calendar
.
get
(
Calendar
.
DAY_OF_MONTH
);
startdate
=
calendar
.
get
(
Calendar
.
DAY_OF_MONTH
),
checkyear
,
checkmonth
,
checkdate
;
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
@@ -146,6 +147,9 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
...
@@ -146,6 +147,9 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
DatePickerDialog
mdiDialog
=
new
DatePickerDialog
(
this
,
new
DatePickerDialog
.
OnDateSetListener
()
{
DatePickerDialog
mdiDialog
=
new
DatePickerDialog
(
this
,
new
DatePickerDialog
.
OnDateSetListener
()
{
@Override
@Override
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
monthOfYear
,
int
dayOfMonth
)
{
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
monthOfYear
,
int
dayOfMonth
)
{
checkdate
=
dayOfMonth
;
checkmonth
=
monthOfYear
;
checkyear
=
year
;
String
date
=
""
+
dayOfMonth
+
'-'
+(
monthOfYear
+
1
)+
'-'
+
year
;
String
date
=
""
+
dayOfMonth
+
'-'
+(
monthOfYear
+
1
)+
'-'
+
year
;
sendstartdate
=
""
+
year
+
'-'
+(
monthOfYear
+
1
)+
'-'
+
dayOfMonth
;
sendstartdate
=
""
+
year
+
'-'
+(
monthOfYear
+
1
)+
'-'
+
dayOfMonth
;
startdateselect
.
setText
(
date
);
startdateselect
.
setText
(
date
);
...
@@ -154,7 +158,7 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
...
@@ -154,7 +158,7 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
mdiDialog
.
show
();
mdiDialog
.
show
();
}
}
protected
void
enddateselect
(
View
view
)
{
protected
void
enddateselect
(
View
view
)
{
DatePickerDialog
mdiDialog
=
new
DatePickerDialog
(
this
,
new
DatePickerDialog
.
OnDateSetListener
()
{
final
DatePickerDialog
mdiDialog
=
new
DatePickerDialog
(
this
,
new
DatePickerDialog
.
OnDateSetListener
()
{
@Override
@Override
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
monthOfYear
,
int
dayOfMonth
)
{
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
monthOfYear
,
int
dayOfMonth
)
{
EditText
enddateselect
=
(
EditText
)
findViewById
(
R
.
id
.
odapplyenddate_id
);
EditText
enddateselect
=
(
EditText
)
findViewById
(
R
.
id
.
odapplyenddate_id
);
...
@@ -162,7 +166,8 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
...
@@ -162,7 +166,8 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
sendenddate
=
""
+
year
+
'-'
+(
monthOfYear
+
1
)+
'-'
+
dayOfMonth
;
sendenddate
=
""
+
year
+
'-'
+(
monthOfYear
+
1
)+
'-'
+
dayOfMonth
;
enddateselect
.
setText
(
date
);
enddateselect
.
setText
(
date
);
}
}
},
startyear
,
startmonth
,
startdate
);
},
checkyear
,
checkmonth
,
checkdate
);
mdiDialog
.
getDatePicker
().
setMinDate
(
checkdate
);
mdiDialog
.
show
();
mdiDialog
.
show
();
}
}
private
String
getStringImage
(
Bitmap
bmp
){
private
String
getStringImage
(
Bitmap
bmp
){
...
@@ -199,6 +204,12 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
...
@@ -199,6 +204,12 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
else
if
(
bitmap
==
null
){
else
if
(
bitmap
==
null
){
Toast
.
makeText
(
this
,
"Please Select an Image"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
this
,
"Please Select an Image"
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
// else if(!(startperiod.equals(1)||startperiod.equals(2)||startperiod.equals(3)||startperiod.equals(4)||startperiod.equals(5)||startperiod.equals(6))){
// Toast.makeText(this, "Please enter a valid Start period", Toast.LENGTH_SHORT).show();
// }
// else if(!endperiod.equals(1)||!endperiod.equals(2)||!endperiod.equals(3)||!endperiod.equals(4)||!endperiod.equals(5)||!endperiod.equals(6)){
// Toast.makeText(this, "Please enter a valid End period", Toast.LENGTH_SHORT).show();
// }
else
{
else
{
final
ProgressDialog
progressDialog
=
new
ProgressDialog
(
this
);
final
ProgressDialog
progressDialog
=
new
ProgressDialog
(
this
);
RequestQueue
queue
;
RequestQueue
queue
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment