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
a23d0a3e
Commit
a23d0a3e
authored
Apr 26, 2022
by
Anuththara18
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Bug in Game Maps Stars & Added Video URLs
parent
0df5f15a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
16 deletions
+36
-16
app/src/main/java/com/anuththara18/attentionassessment/consentform/GetParentsConsentActivity.java
...tionassessment/consentform/GetParentsConsentActivity.java
+1
-0
app/src/main/java/com/anuththara18/attentionassessment/home/NavigationDrawerActivity.java
...18/attentionassessment/home/NavigationDrawerActivity.java
+1
-1
app/src/main/java/com/anuththara18/attentionassessment/map/Map1Activity.java
...om/anuththara18/attentionassessment/map/Map1Activity.java
+4
-4
app/src/main/java/com/anuththara18/attentionassessment/map/Map2Activity.java
...om/anuththara18/attentionassessment/map/Map2Activity.java
+4
-4
app/src/main/java/com/anuththara18/attentionassessment/selective/SelectiveAttentionGame1.java
...ttentionassessment/selective/SelectiveAttentionGame1.java
+1
-0
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoLandscapeActivity.java
...assessment/videos/IntroductoryVideoLandscapeActivity.java
+12
-3
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoPortraitActivity.java
...nassessment/videos/IntroductoryVideoPortraitActivity.java
+13
-4
No files found.
app/src/main/java/com/anuththara18/attentionassessment/consentform/GetParentsConsentActivity.java
View file @
a23d0a3e
...
@@ -28,6 +28,7 @@ import androidx.core.content.ContextCompat;
...
@@ -28,6 +28,7 @@ import androidx.core.content.ContextCompat;
import
com.anuththara18.attentionassessment.R
;
import
com.anuththara18.attentionassessment.R
;
import
com.anuththara18.attentionassessment.home.MainFragment
;
import
com.anuththara18.attentionassessment.home.NavigationDrawerActivity
;
import
com.anuththara18.attentionassessment.home.NavigationDrawerActivity
;
import
com.anuththara18.attentionassessment.language.LanguageSetter
;
import
com.anuththara18.attentionassessment.language.LanguageSetter
;
...
...
app/src/main/java/com/anuththara18/attentionassessment/home/NavigationDrawerActivity.java
View file @
a23d0a3e
...
@@ -52,7 +52,7 @@ public class NavigationDrawerActivity extends AppCompatActivity implements Navig
...
@@ -52,7 +52,7 @@ public class NavigationDrawerActivity extends AppCompatActivity implements Navig
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_navigation_drawer
);
setContentView
(
R
.
layout
.
activity_navigation_drawer
);
toolbar
.
setNavigationIcon
(
null
);
//
toolbar.setNavigationIcon(null);
// Configure all views
// Configure all views
this
.
configureToolBar
();
this
.
configureToolBar
();
...
...
app/src/main/java/com/anuththara18/attentionassessment/map/Map1Activity.java
View file @
a23d0a3e
...
@@ -49,16 +49,16 @@ public class Map1Activity extends AppCompatActivity {
...
@@ -49,16 +49,16 @@ public class Map1Activity extends AppCompatActivity {
if
(
comp1
==
1
)
{
if
(
comp1
==
1
)
{
star1
.
setVisibility
(
View
.
VISIBLE
);
star1
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp2
==
1
){
if
(
comp2
==
1
){
star2
.
setVisibility
(
View
.
VISIBLE
);
star2
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp3
==
1
){
if
(
comp3
==
1
){
star3
.
setVisibility
(
View
.
VISIBLE
);
star3
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp4
==
1
){
if
(
comp4
==
1
){
star4
.
setVisibility
(
View
.
VISIBLE
);
star4
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp5
==
1
){
if
(
comp5
==
1
){
star5
.
setVisibility
(
View
.
VISIBLE
);
star5
.
setVisibility
(
View
.
VISIBLE
);
}
}
...
...
app/src/main/java/com/anuththara18/attentionassessment/map/Map2Activity.java
View file @
a23d0a3e
...
@@ -56,16 +56,16 @@ public class Map2Activity extends AppCompatActivity {
...
@@ -56,16 +56,16 @@ public class Map2Activity extends AppCompatActivity {
if
(
comp1
==
1
)
{
if
(
comp1
==
1
)
{
star1
.
setVisibility
(
View
.
VISIBLE
);
star1
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp2
==
1
){
if
(
comp2
==
1
){
star2
.
setVisibility
(
View
.
VISIBLE
);
star2
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp3
==
1
){
if
(
comp3
==
1
){
star3
.
setVisibility
(
View
.
VISIBLE
);
star3
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp4
==
1
){
if
(
comp4
==
1
){
star4
.
setVisibility
(
View
.
VISIBLE
);
star4
.
setVisibility
(
View
.
VISIBLE
);
}
}
else
if
(
comp5
==
1
){
if
(
comp5
==
1
){
star5
.
setVisibility
(
View
.
VISIBLE
);
star5
.
setVisibility
(
View
.
VISIBLE
);
}
}
...
...
app/src/main/java/com/anuththara18/attentionassessment/selective/SelectiveAttentionGame1.java
View file @
a23d0a3e
...
@@ -426,6 +426,7 @@ public class SelectiveAttentionGame1 extends AppCompatActivity {
...
@@ -426,6 +426,7 @@ public class SelectiveAttentionGame1 extends AppCompatActivity {
}
}
else
if
(
Map2Activity
.
level
==
2
){
else
if
(
Map2Activity
.
level
==
2
){
Map2Activity
.
comp2
=
1
;
Map2Activity
.
comp2
=
1
;
Log
.
d
(
"***************"
,
"level 2 done"
);
}
}
else
if
(
Map2Activity
.
level
==
3
){
else
if
(
Map2Activity
.
level
==
3
){
Map2Activity
.
comp3
=
1
;
Map2Activity
.
comp3
=
1
;
...
...
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoLandscapeActivity.java
View file @
a23d0a3e
...
@@ -3,9 +3,11 @@ package com.anuththara18.attentionassessment.videos;
...
@@ -3,9 +3,11 @@ package com.anuththara18.attentionassessment.videos;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.media.MediaPlayer
;
import
android.media.MediaPlayer
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.View
;
import
android.view.WindowManager
;
import
android.webkit.WebSettings
;
import
android.webkit.WebSettings
;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
import
android.webkit.WebViewClient
;
import
android.webkit.WebViewClient
;
...
@@ -36,6 +38,13 @@ public class IntroductoryVideoLandscapeActivity extends AppCompatActivity {
...
@@ -36,6 +38,13 @@ public class IntroductoryVideoLandscapeActivity extends AppCompatActivity {
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
if
(
Build
.
VERSION
.
SDK_INT
<
16
)
{
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
,
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
);
}
View
decorView
=
getWindow
().
getDecorView
();
int
uiOptions
=
View
.
SYSTEM_UI_FLAG_FULLSCREEN
;
decorView
.
setSystemUiVisibility
(
uiOptions
);
setContentView
(
R
.
layout
.
activity_introductory_video
);
setContentView
(
R
.
layout
.
activity_introductory_video
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
...
@@ -76,14 +85,14 @@ public class IntroductoryVideoLandscapeActivity extends AppCompatActivity {
...
@@ -76,14 +85,14 @@ public class IntroductoryVideoLandscapeActivity extends AppCompatActivity {
if
(
MainFragment
.
game
.
equals
(
"focused"
))
{
if
(
MainFragment
.
game
.
equals
(
"focused"
))
{
if
(
Map1Activity
.
level
==
1
||
Map1Activity
.
level
==
2
)
{
if
(
Map1Activity
.
level
==
1
||
Map1Activity
.
level
==
2
)
{
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
9n7kxFr-nBA
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
_Ob4e8Upofg
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
}
}
else
if
(
Map1Activity
.
level
==
5
){
else
if
(
Map1Activity
.
level
==
5
){
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
9n7kxFr-nBA
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
bRPtJDKBPu4
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
}
}
}
}
else
if
(
MainFragment
.
game
.
equals
(
"alternating"
))
{
else
if
(
MainFragment
.
game
.
equals
(
"alternating"
))
{
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
9n7kxFr-nBA
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
zphdLe78ils
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
}
}
Log
.
i
(
"*********************************************************Video"
,
"Video Playing...."
);
Log
.
i
(
"*********************************************************Video"
,
"Video Playing...."
);
...
...
app/src/main/java/com/anuththara18/attentionassessment/videos/IntroductoryVideoPortraitActivity.java
View file @
a23d0a3e
...
@@ -9,9 +9,11 @@ import android.content.Intent;
...
@@ -9,9 +9,11 @@ import android.content.Intent;
import
android.graphics.Bitmap
;
import
android.graphics.Bitmap
;
import
android.media.MediaPlayer
;
import
android.media.MediaPlayer
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.View
;
import
android.view.WindowManager
;
import
android.webkit.DownloadListener
;
import
android.webkit.DownloadListener
;
import
android.webkit.WebSettings
;
import
android.webkit.WebSettings
;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
...
@@ -42,6 +44,13 @@ public class IntroductoryVideoPortraitActivity extends AppCompatActivity {
...
@@ -42,6 +44,13 @@ public class IntroductoryVideoPortraitActivity extends AppCompatActivity {
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
if
(
Build
.
VERSION
.
SDK_INT
<
16
)
{
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
,
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
);
}
View
decorView
=
getWindow
().
getDecorView
();
int
uiOptions
=
View
.
SYSTEM_UI_FLAG_FULLSCREEN
;
decorView
.
setSystemUiVisibility
(
uiOptions
);
setContentView
(
R
.
layout
.
activity_introductory_video
);
setContentView
(
R
.
layout
.
activity_introductory_video
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
TextView
skip
=
findViewById
(
R
.
id
.
skip
);
...
@@ -71,16 +80,16 @@ public class IntroductoryVideoPortraitActivity extends AppCompatActivity {
...
@@ -71,16 +80,16 @@ public class IntroductoryVideoPortraitActivity extends AppCompatActivity {
});
});
if
(
MainFragment
.
game
.
equals
(
"focused"
))
{
if
(
MainFragment
.
game
.
equals
(
"focused"
))
{
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
9n7kxFr-nBA
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
66b8q2O5F5g
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
}
}
else
if
(
MainFragment
.
game
.
equals
(
"divided"
))
{
else
if
(
MainFragment
.
game
.
equals
(
"divided"
))
{
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
9n7kxFr-nBA
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
h6OhuRTsytc
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
}
}
else
if
(
MainFragment
.
game
.
equals
(
"selective"
))
{
else
if
(
MainFragment
.
game
.
equals
(
"selective"
))
{
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
9n7kxFr-nB
A\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
Nx0ZH37J8R
A\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
}
}
else
if
(
MainFragment
.
game
.
equals
(
"sustained"
))
{
else
if
(
MainFragment
.
game
.
equals
(
"sustained"
))
{
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
9n7kxFr-nBA
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
videoStr
=
"<html><body><iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/
uivJyOuy4JE
\" frameborder=\"0\" allowfullscreen></iframe></body></html>"
;
}
}
Log
.
i
(
"*********************************************************Video"
,
"Video Playing...."
);
Log
.
i
(
"*********************************************************Video"
,
"Video Playing...."
);
...
...
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