Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
Research-Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jayakody J.A.D.K.A - IT19114040
Research-Project
Commits
89ca9449
Commit
89ca9449
authored
Apr 26, 2022
by
Anuththara18
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Background Music Restart
parent
051c7db1
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
96 additions
and
2 deletions
+96
-2
app/src/main/java/com/anuththara18/attentionassessment/alternating/AlternatingAttentionGame1.java
...tionassessment/alternating/AlternatingAttentionGame1.java
+10
-0
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DividedAttentionGame1.java
...ionassessment/dividedattention/DividedAttentionGame1.java
+10
-0
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame1.java
...18/attentionassessment/focused/FocusedAttentionGame1.java
+10
-0
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame2.java
...18/attentionassessment/focused/FocusedAttentionGame2.java
+10
-0
app/src/main/java/com/anuththara18/attentionassessment/selective/SelectiveAttentionGame1.java
...ttentionassessment/selective/SelectiveAttentionGame1.java
+10
-0
app/src/main/java/com/anuththara18/attentionassessment/sustained/SustainedAttentionGame1.java
...ttentionassessment/sustained/SustainedAttentionGame1.java
+10
-0
app/src/main/java/com/anuththara18/attentionassessment/sustained/SustainedAttentionGame2.java
...ttentionassessment/sustained/SustainedAttentionGame2.java
+10
-0
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoLandscapeActivity.java
...assessment/videos/IntroductoryVideoLandscapeActivity.java
+2
-0
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoPortraitActivity.java
...nassessment/videos/IntroductoryVideoPortraitActivity.java
+2
-0
app/src/main/res/layout/activity_introductory_video.xml
app/src/main/res/layout/activity_introductory_video.xml
+20
-2
app/src/main/res/values-si/strings(si).xml
app/src/main/res/values-si/strings(si).xml
+1
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/java/com/anuththara18/attentionassessment/alternating/AlternatingAttentionGame1.java
View file @
89ca9449
...
@@ -110,6 +110,16 @@ public class AlternatingAttentionGame1 extends AppCompatActivity {
...
@@ -110,6 +110,16 @@ public class AlternatingAttentionGame1 extends AppCompatActivity {
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
alternating
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
alternating
);
mp
.
start
();
mp
.
start
();
mp
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Log
.
d
(
"#############"
,
"restart"
);
mp
.
start
();
}
});
long
gameStart
=
System
.
currentTimeMillis
();
long
gameStart
=
System
.
currentTimeMillis
();
//creating a database
//creating a database
...
...
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DividedAttentionGame1.java
View file @
89ca9449
...
@@ -97,6 +97,16 @@ public class DividedAttentionGame1 extends AppCompatActivity {
...
@@ -97,6 +97,16 @@ public class DividedAttentionGame1 extends AppCompatActivity {
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
divided
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
divided
);
mp
.
start
();
mp
.
start
();
mp
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Log
.
d
(
"#############"
,
"restart"
);
mp
.
start
();
}
});
long
gameStart
=
System
.
currentTimeMillis
();
long
gameStart
=
System
.
currentTimeMillis
();
//creating a database
//creating a database
...
...
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame1.java
View file @
89ca9449
...
@@ -117,6 +117,16 @@ public class FocusedAttentionGame1 extends AppCompatActivity {
...
@@ -117,6 +117,16 @@ public class FocusedAttentionGame1 extends AppCompatActivity {
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
focused
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
focused
);
mp
.
start
();
mp
.
start
();
mp
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Log
.
d
(
"#############"
,
"restart"
);
mp
.
start
();
}
});
long
gameStart
=
System
.
currentTimeMillis
();
long
gameStart
=
System
.
currentTimeMillis
();
//creating a database
//creating a database
...
...
app/src/main/java/com/anuththara18/attentionassessment/focused/FocusedAttentionGame2.java
View file @
89ca9449
...
@@ -102,6 +102,16 @@ public class FocusedAttentionGame2 extends AppCompatActivity {
...
@@ -102,6 +102,16 @@ public class FocusedAttentionGame2 extends AppCompatActivity {
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
focused
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
focused
);
mp
.
start
();
mp
.
start
();
mp
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Log
.
d
(
"#############"
,
"restart"
);
mp
.
start
();
}
});
long
gameStart
=
System
.
currentTimeMillis
();
long
gameStart
=
System
.
currentTimeMillis
();
//creating a database
//creating a database
...
...
app/src/main/java/com/anuththara18/attentionassessment/selective/SelectiveAttentionGame1.java
View file @
89ca9449
...
@@ -119,6 +119,16 @@ public class SelectiveAttentionGame1 extends AppCompatActivity {
...
@@ -119,6 +119,16 @@ public class SelectiveAttentionGame1 extends AppCompatActivity {
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
selective
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
selective
);
mp
.
start
();
mp
.
start
();
mp
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Log
.
d
(
"#############"
,
"restart"
);
mp
.
start
();
}
});
long
gameStart
=
System
.
currentTimeMillis
();
long
gameStart
=
System
.
currentTimeMillis
();
Log
.
d
(
"startTime"
,
String
.
valueOf
(
gameStart
));
Log
.
d
(
"startTime"
,
String
.
valueOf
(
gameStart
));
...
...
app/src/main/java/com/anuththara18/attentionassessment/sustained/SustainedAttentionGame1.java
View file @
89ca9449
...
@@ -107,6 +107,16 @@ public class SustainedAttentionGame1 extends AppCompatActivity {
...
@@ -107,6 +107,16 @@ public class SustainedAttentionGame1 extends AppCompatActivity {
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
sustained
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
sustained
);
mp
.
start
();
mp
.
start
();
mp
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Log
.
d
(
"#############"
,
"restart"
);
mp
.
start
();
}
});
long
gameStart
=
System
.
currentTimeMillis
();
long
gameStart
=
System
.
currentTimeMillis
();
//creating a database
//creating a database
...
...
app/src/main/java/com/anuththara18/attentionassessment/sustained/SustainedAttentionGame2.java
View file @
89ca9449
...
@@ -103,6 +103,16 @@ public class SustainedAttentionGame2 extends AppCompatActivity {
...
@@ -103,6 +103,16 @@ public class SustainedAttentionGame2 extends AppCompatActivity {
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
divided
);
mp
=
MediaPlayer
.
create
(
getApplicationContext
(),
R
.
raw
.
divided
);
mp
.
start
();
mp
.
start
();
mp
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Log
.
d
(
"#############"
,
"restart"
);
mp
.
start
();
}
});
long
gameStart
=
System
.
currentTimeMillis
();
long
gameStart
=
System
.
currentTimeMillis
();
//creating a database
//creating a database
...
...
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoLandscapeActivity.java
View file @
89ca9449
...
@@ -48,7 +48,9 @@ public class IntroductoryVideoLandscapeActivity extends AppCompatActivity {
...
@@ -48,7 +48,9 @@ public class IntroductoryVideoLandscapeActivity extends AppCompatActivity {
setContentView
(
R
.
layout
.
activity_introductory_video
);
setContentView
(
R
.
layout
.
activity_introductory_video
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
TextView
loading
=
findViewById
(
R
.
id
.
loading
);
skip
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
skip
));
skip
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
skip
));
loading
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
loading
));
/*
/*
// finding videoview by its id
// finding videoview by its id
...
...
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoPortraitActivity.java
View file @
89ca9449
...
@@ -54,7 +54,9 @@ public class IntroductoryVideoPortraitActivity extends AppCompatActivity {
...
@@ -54,7 +54,9 @@ public class IntroductoryVideoPortraitActivity extends AppCompatActivity {
setContentView
(
R
.
layout
.
activity_introductory_video
);
setContentView
(
R
.
layout
.
activity_introductory_video
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
TextView
loading
=
findViewById
(
R
.
id
.
loading
);
skip
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
skip
));
skip
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
skip
));
loading
.
setText
(
LanguageSetter
.
getresources
().
getString
(
R
.
string
.
loading
));
skip
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
skip
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
...
...
app/src/main/res/layout/activity_introductory_video.xml
View file @
89ca9449
...
@@ -13,11 +13,29 @@
...
@@ -13,11 +13,29 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5dp"
android:layout_marginTop=
"5dp"
android:fontFamily=
"@font/poppins_medium"
android:fontFamily=
"@font/poppins_bold"
android:textStyle=
"bold"
android:gravity=
"center"
android:gravity=
"center"
android:background=
"#028107"
android:text=
"@string/skip"
android:text=
"@string/skip"
android:textColor=
"@color/
black
"
android:textColor=
"@color/
white
"
android:textSize=
"16dp"
android:textSize=
"16dp"
android:layout_marginLeft=
"20dp"
android:layout_marginRight=
"20dp"
android:padding=
"2dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/loading"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5dp"
android:fontFamily=
"@font/poppins_medium"
android:gravity=
"center"
android:text=
"@string/loading"
android:textColor=
"@color/black"
android:textSize=
"12dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
app/src/main/res/values-si/strings(si).xml
View file @
89ca9449
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
<string
name=
"req"
>
* අවශ්යයි
</string>
<string
name=
"req"
>
* අවශ්යයි
</string>
<string
name=
"send"
>
දත්ත යවන්න
</string>
<string
name=
"send"
>
දත්ත යවන්න
</string>
<string
name=
"diagnosis"
>
ඔබේ දරුවා අවධානය යොමු කිරිමේදී යම් දුර්වලතාවයක් පෙන්නුම් කරන්නේද?
</string>
<string
name=
"diagnosis"
>
ඔබේ දරුවා අවධානය යොමු කිරිමේදී යම් දුර්වලතාවයක් පෙන්නුම් කරන්නේද?
</string>
<string
name=
"loading"
>
වීඩියෝව පූරණය වීමට තත්පර කිහිපයක් ගතවනු ඇත...
</string>
<string
name=
"select"
>
තෝරන්න
</string>
<string
name=
"select"
>
තෝරන්න
</string>
<string
name=
"birdselect"
>
ඔබ වඩාත්ම කැමති චරිතය තෝරන්න
</string>
<string
name=
"birdselect"
>
ඔබ වඩාත්ම කැමති චරිතය තෝරන්න
</string>
...
...
app/src/main/res/values/strings.xml
View file @
89ca9449
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<string
name=
"req"
>
* Required
</string>
<string
name=
"req"
>
* Required
</string>
<string
name=
"send"
>
Send Data
</string>
<string
name=
"send"
>
Send Data
</string>
<string
name=
"diagnosis"
>
Does your child show any symptoms of attention impairements?
</string>
<string
name=
"diagnosis"
>
Does your child show any symptoms of attention impairements?
</string>
<string
name=
"loading"
>
The video will take few seconds to load...
</string>
<string
name=
"select"
>
Select the
</string>
<string
name=
"select"
>
Select the
</string>
<string
name=
"birdselect"
>
Pick your favourite character
</string>
<string
name=
"birdselect"
>
Pick your favourite character
</string>
...
...
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