Commit c1b90b43 authored by Anuththara18's avatar Anuththara18

Consent Form Sinhala Implementation

parent 68d91859
......@@ -36,6 +36,11 @@
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.NoActionBar">
</activity>
<activity
android:name=".consentform.SinhalaConsentFormActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.NoActionBar">
</activity>
<activity
android:name=".consentform.GetParentsConsentActivity"
android:screenOrientation="portrait"
......@@ -140,11 +145,6 @@
android:name=".focused.FocusedAttentionGame1"
android:screenOrientation="landscape"
android:theme="@style/Theme.AppCompat.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".loginregistration.RegistrationActivity"
......@@ -176,7 +176,11 @@
android:name=".splashscreen.SplashActivity"
android:screenOrientation="landscape"
android:theme="@style/Theme.AppCompat.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
......
......@@ -19,6 +19,7 @@ import android.widget.TextView;
import com.anuththara18.attentionassessment.R;
import com.anuththara18.attentionassessment.consentform.ConsentFormActivity;
import com.anuththara18.attentionassessment.consentform.SinhalaConsentFormActivity;
import com.anuththara18.attentionassessment.gender.GenderActivity;
import com.anuththara18.attentionassessment.home.NavigationDrawerActivity;
import com.anuththara18.attentionassessment.language.LanguageActivity;
......@@ -105,8 +106,13 @@ public class AgeActivity extends AppCompatActivity {
next.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(AgeActivity.this, ConsentFormActivity.class);
startActivity(intent);
if ( LanguageActivity.text.equals("English")) {
startActivity(new Intent(AgeActivity.this, ConsentFormActivity.class));
}
else {
startActivity(new Intent(AgeActivity.this, SinhalaConsentFormActivity.class));
}
}
});
......
package com.anuththara18.attentionassessment.consentform;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.TextView;
......@@ -11,6 +13,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.anuththara18.attentionassessment.R;
import com.anuththara18.attentionassessment.language.LanguageSetter;
import java.util.ArrayList;
import java.util.List;
......@@ -20,14 +23,26 @@ public class ConsentFormActivity extends AppCompatActivity {
RecyclerView recyclerView;
List<ConsentForm> consentFormList;
private Boolean[] chkArr;
TextView textView, next;
@Override
protected void onCreate(Bundle 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_consent_form);
recyclerView = findViewById(R.id.recyclerView);
textView = findViewById(R.id.textView);
next = findViewById(R.id.next);
textView.setText(LanguageSetter.getresources().getString(R.string.consentForm));
next.setText(LanguageSetter.getresources().getString(R.string.proceed));
initData();
initRecyclerView();
......@@ -54,18 +69,16 @@ public class ConsentFormActivity extends AppCompatActivity {
consentFormList = new ArrayList<>();
consentFormList.add(new ConsentForm("Introduction", "Your child is being asked to participate in a research study. This research is being conducted to observe the behaviour of your child in order to develop an automated tool for screening attention impairments in young children. When you are invited to participate in research, you have the right to be informed about the study procedures so that you can decide whether you want to consent to participation. This form may contain words that you do not know. Please ask the researcher to explain any words or information that you do not understand. \n\n" +
"You have the right to know what you will be asked to do so that you can decide whether or not to be in the study. Your participation is voluntary . Your participation is not mandatory. You may refuse to be in the study, and it is your right. If you do not want to continue to be in the study, you may withdraw at any time without penalty or loss of benefits to which you are otherwise entitled."));
consentFormList.add(new ConsentForm("Why is this study being done?", "The purpose of this research is to observe the behaviour of children with the same condition as your child in order to help children who are not yet diagnosed in order to develop an automated screening tool for children with attention impairments. The child’s attention will be monitored through attention analysis."));
consentFormList.add(new ConsentForm("How many people will be in the study?", "**The Doctor at LRH and a research assistant outside the consultation room will be at LRH for data collection during the child’s sessions with the Doctor."));
consentFormList.add(new ConsentForm("What am I being asked to do?", "You will be asked to provide consent in order to collect data related to the attention of your child. The child will not be interfered at any stage where the Doctor is in session. This assessments will not interfere the Doctor’s engagement with the child. Furthermore, your data will be confidential, and it will not be shared with anyone else and your child’s identity will not be revealed at any cost."));
consentFormList.add(new ConsentForm("How long will I be in the study?", "This study will take the duration where the doctor examines the child during your regular LRH visits. You can stop participating at any time without penalty. This will not affect the consultation time the doctor attends to your child."));
consentFormList.add(new ConsentForm("Why is this study being done?", "The purpose of this research is to observe the behaviour of your child in order to help children who are not yet diagnosed in order to develop an automated screening tool for children with attention impairments. The child’s attention will be monitored through attention analysis."));
consentFormList.add(new ConsentForm("What am I being asked to do?", "You will be asked to provide consent in order to collect data related to the attention of your child. Furthermore, your data will be confidential, and it will not be shared with anyone else and your child’s identity will not be revealed at any cost."));
consentFormList.add(new ConsentForm("What are the benefits of being in the study?", "Your participation will benefit the country since this is the first time a technology-based solution is proposed and developed in Sri Lanka for children with attention impairments."));
consentFormList.add(new ConsentForm("What are the risks of being in the study?", "There are no risks involved to the child when participating to this research."));
consentFormList.add(new ConsentForm("What are the costs of being in the study?", "There is no cost to you."));
consentFormList.add(new ConsentForm("Confidentiality", "The data collected will be stored securely in a dedicated storage device at Sri Lanka Institute of Information Technology. Only the research team has the access to data. The researchers will ensure the confidentiality of the information collected where the child’s identity will not be revealed at any instance and the data will be used only for research purposes and will be destroyed in a secure manner once the research is complete."));
consentFormList.add(new ConsentForm("Will I be compensated for participating in the study?", "You will receive no payment for taking part in this study."));
consentFormList.add(new ConsentForm("What are my rights as a participant?", "Participation in this study is voluntary. Your participation is not mandatory. You will also be informed of any new information discovered during the course of this study that might influence your child’s health, welfare, or willingness to be in this study."));
consentFormList.add(new ConsentForm("Who do I contact if I have questions, concerns, or complaints?", "Please contact your Doctor or the research assistant if you have questions about the research. Additionally, you may ask questions, voice concerns or complaints to the research team."));
consentFormList.add(new ConsentForm("Whom do I call if I have questions or problems?", "If you have any questions regarding your rights as a participant in this research and/or concerns about the study, or if you feel under any pressure to enroll or to continue to participate in this study, you may contact the Dr Pradeepa Samarasinghe, Principle Investigator at Sri Lanka Institute of Information Technology at 0723537952 or pradeepa.s@sliit.lk . A copy of this Informed Consent form will be given to you before you participate in the research."));
consentFormList.add(new ConsentForm("Who do I contact if I have questions, concerns, or complaints?", "Please contact the research assistant or the research team if you have questions about the research."));
consentFormList.add(new ConsentForm("Whom do I call if I have questions or problems?", "If you have any questions regarding your rights as a participant in this research and/or concerns about the study, or if you feel under any pressure to enroll or to continue to participate in this study, you may contact the Dr Pradeepa Samarasinghe, Principle Investigator at Sri Lanka Institute of Information Technology at 0723537952 or pradeepa.s@sliit.lk ."));
}
}
\ No newline at end of file
......@@ -10,9 +10,11 @@ import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
......@@ -53,6 +55,13 @@ public class GetParentsConsentActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle 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_get_parents_consent);
textView3 = (TextView) findViewById(R.id.textView3);
......@@ -60,6 +69,10 @@ public class GetParentsConsentActivity extends AppCompatActivity {
btnGetSignature = (Button)findViewById(R.id.btnGetSignature);
fingerprintImageView = (ImageView)findViewById(R.id.fingerprintImageView);
textView3.setText(LanguageSetter.getresources().getString(R.string.provideconsent));
next.setText(LanguageSetter.getresources().getString(R.string.proceed));
btnGetSignature.setText(LanguageSetter.getresources().getString(R.string.getSignature));
//textView3.setText(LanguageSetter.getresources().getString(R.string.provideConsent));
//btnSaveFingerPrint.setText(LanguageSetter.getresources().getString(R.string.startTest));
//btnGetSignature.setText(LanguageSetter.getresources().getString(R.string.getSignature));
......
......@@ -7,6 +7,7 @@ import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.util.AttributeSet;
......@@ -14,6 +15,7 @@ import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.Toast;
......@@ -21,6 +23,7 @@ import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.anuththara18.attentionassessment.R;
import com.anuththara18.attentionassessment.language.LanguageSetter;
import java.io.File;
import java.io.FileOutputStream;
......@@ -45,6 +48,13 @@ public class GetSignatureActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle 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_get_signature);
canvasLL = (LinearLayout) findViewById(R.id.canvasLL);
......@@ -55,6 +65,9 @@ public class GetSignatureActivity extends AppCompatActivity {
btnClear = (Button) findViewById(R.id.btnclear);
btnSave = (Button) findViewById(R.id.btnsave);
btnClear.setText(LanguageSetter.getresources().getString(R.string.clear));
btnSave.setText(LanguageSetter.getresources().getString(R.string.save));
view = canvasLL;
btnClear.setOnClickListener(new View.OnClickListener() {
......
......@@ -107,7 +107,7 @@ public class FocusedAttentionGame1 extends AppCompatActivity {
red_btn = (ImageButton) findViewById(R.id.red_btn);
textView = (TextView) findViewById(R.id.textView);
//textView.setText(LanguageSetter.getresources().getString(R.string.focg1));
textView.setText(LanguageSetter.getresources().getString(R.string.focg1));
mp = MediaPlayer.create(getApplicationContext(), R.raw.focused);
mp.start();
......
......@@ -21,7 +21,7 @@ public class LanguageActivity extends AppCompatActivity {
ImageButton english_btn, sinhala_btn, sinhala_txt_btn;
TextView english_txt;
String text = null;
public static String text = "English";
TextView selectLanguage, next;
@Override
......
......@@ -109,7 +109,7 @@ public class SelectiveAttentionGame1 extends AppCompatActivity {
cross_btn = (ImageView) findViewById(R.id.cross_btn);
textview = findViewById(R.id.textview);
//textview.setText(LanguageSetter.getresources().getString(R.string.select));
textview.setText(LanguageSetter.getresources().getString(R.string.select));
mp = MediaPlayer.create(getApplicationContext(), R.raw.selective);
mp.start();
......
......@@ -48,7 +48,7 @@ public class BirdChoosingActivity extends AppCompatActivity {
l3 = findViewById(R.id.l3);
l4 = findViewById(R.id.l4);
//textView8.setText(LanguageSetter.getresources().getString(R.string.birdselect));
textView8.setText(LanguageSetter.getresources().getString(R.string.birdselect));
bird1.setOnClickListener(new View.OnClickListener() {
@Override
......
......@@ -21,14 +21,14 @@
android:layout_height="wrap_content"
android:id="@+id/btnclear"
android:layout_gravity="center"
android:text="Clear"/>
android:text="@string/clear"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btnsave"
android:layout_gravity="center"
android:text="Save"/>
android:text="@string/save"/>
</LinearLayout>
\ No newline at end of file
......@@ -27,11 +27,12 @@
<string name="susg1">කුරුල්ලා අත්ත මත වාඩි වූ විට රතු බොත්තම ඔබන්න</string>
<string name="altg1">සතා පෙනෙන පැත්තේ ඇති රතු බොත්තම ඔබන්න</string>
<string name="provideconsent">I have read this consent form and my questions have been answered. My signature below means that I do want my child to be in the study. I know that I can withdraw my child from the study at any time without any problems.</string>
<string name="provideconsent">මම මේ කැමති පත්‍රය කියවා ඒ සම්බන්ධව ඇති වූ ගැටළු නිරාකරණය කර ගත්තෙමි. පහත සඳහන් අත්සනින් මම මගේ දරුවා මෙම අධ්‍යයනයට සම්බන්ධ කරවීමට කැමති බව ප්‍රකාශ කර සිටිමි. මා කැමති ඕනෑම අවස්ථාවක කිසිදු ගැටලුවකින් තොරව මෙම අධ්‍යයනයෙන් මගේ දරුවා ඉවත්කරගැනීමේ හැකියාවද ඇති බව මම දනිමි.</string>
<string name="getSignature">මෙහි අත්සන් කරන්න</string>
<string name="proceed">ඉදිරියට</string>
<string name="consentForm">පර්යේෂණ අධ්‍යයනයකට සහභාගී වීමට කැමැත්ත දක්වන පෝරමය</string>
<string name="clear">මකා දමන්න</string>
<string name="save">සුරකින්න</string>
<!-- Login Screen -->
<string name="welcome">ආයුබෝවන්!</string>
......
......@@ -30,7 +30,8 @@
<string name="getSignature">Sign Here</string>
<string name="proceed">Proceed</string>
<string name="consentForm">Consent Form To Participate in a Research Study</string>
<string name="clear">Clear</string>
<string name="save">Save</string>
<!-- Login Screen -->
<string name="welcome">Welcome!</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment