Breathing Book

parent 0197fb51
Pipeline #4242 failed with stages
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="11" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenRepo" />
<option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="BintrayJCenter" />
<option name="name" value="BintrayJCenter" />
<option name="url" value="https://jcenter.bintray.com/" />
</remote-repository>
<remote-repository>
<option name="id" value="Google" />
<option name="name" value="Google" />
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven" />
<option name="name" value="maven" />
<option name="url" value="https://jitpack.io" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DesignSurface">
<option name="filePathToZoomLevelMap">
<map>
<entry key="..\:/Android/Breathing_Book/app/src/main/res/layout/activity_age5_l2_q1.xml" value="0.25416666666666665" />
<entry key="..\:/Android/Breathing_Book/app/src/main/res/layout/activity_age5_l2_q3.xml" value="0.25416666666666665" />
<entry key="..\:/Android/Breathing_Book/app/src/main/res/layout/activity_dashboard_lite.xml" value="0.12360688956433637" />
<entry key="..\:/Android/Breathing_Book/app/src/main/res/layout/activity_listen_list.xml" value="0.12360688956433637" />
<entry key="..\:/Android/Breathing_Book/app/src/main/res/layout/activity_main.xml" value="0.25416666666666665" />
<entry key="..\:/Android/Breathing_Book/app/src/main/res/layout/activity_select_age.xml" value="0.12760416666666666" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/drawable/breathing_book_ic_baseline_add_a_photo_24.xml" value="0.2703125" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/drawable/breathing_book_ic_baseline_hearing_24.xml" value="0.2703125" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/drawable/breathing_book_ic_baseline_speaker_phone_24.xml" value="0.2703125" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/drawable/breathing_book_ic_baseline_videogame_asset_24.xml" value="0.2703125" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/drawable/brething_book_ic_baseline_chrome_reader_mode_24.xml" value="0.2703125" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_dashboard_lite.xml" value="0.176" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_listen_story.xml" value="0.22916666666666666" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_progress.xml" value="0.16458333333333333" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_raccuracy.xml" value="0.16458333333333333" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_read_story.xml" value="0.16458333333333333" />
<entry key="..\:/Final Android/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_usage_progress.xml" value="0.16458333333333333" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/drawable/breathing_book_ic_baseline_videogame_asset_24.xml" value="0.26615384615384613" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/drawable/brething_book_ic_baseline_chrome_reader_mode_24.xml" value="0.26615384615384613" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/drawable/ic_baseline_play_arrow_24.xml" value="0.26615384615384613" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_augment_main.xml" value="0.12360688956433637" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_augmented.xml" value="0.12360688956433637" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_dashboard_lite.xml" value="0.2" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_exercises.xml" value="0.12360688956433637" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/layout/activity_read_list.xml" value="0.12360688956433637" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/Breathing_Book/app/src/main/res/layout/card_view.xml" value="0.12360688956433637" />
<entry key="..\:/Users/Ajithran/Desktop/Augmented Projects/Breathing_Book/app/src/main/res/layout/activity_bar_chart.xml" value="0.13020833333333334" />
</map>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
/build
\ No newline at end of file
plugins {
id 'com.android.application'
id 'com.chaquo.python'
id 'com.google.gms.google-services'
}
android {
compileSdkVersion 31
defaultConfig {
applicationId "com.example.breathing_book"
python{
}
minSdkVersion 21
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "armeabi-v7a", "x86"
}
python {
buildPython "C:/Python/python.exe"
}
sourceSets {
main {
python.srcDir "src/main/python"
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
aaptOptions {
noCompress "tflite"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
ndkVersion '21.0.6113669'
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.firebase:firebase-storage:20.0.0'
implementation 'com.google.firebase:firebase-database:20.0.2'
implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.17.1'
implementation 'com.google.ar.sceneform:assets:1.17.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.google.android.material:material:<1.5.0-alpha04>'
implementation 'nl.dionsegijn:konfetti:1.1.2'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.21'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation('org.tensorflow:tensorflow-lite:0.0.0-nightly') { changing = true }
implementation('org.tensorflow:tensorflow-lite-gpu:0.0.0-nightly') { changing = true }
implementation('org.tensorflow:tensorflow-lite-support:0.0.0-nightly') { changing = true }
}
\ No newline at end of file
{
"project_info": {
"project_number": "371436457998",
"firebase_url": "https://breathing-book-fb330-default-rtdb.firebaseio.com",
"project_id": "breathing-book-fb330",
"storage_bucket": "breathing-book-fb330.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:371436457998:android:b664a35a466adfb1c5ac5f",
"android_client_info": {
"package_name": "com.example.ar"
}
},
"oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3ja3NC89EJRtKgZPnuqv_lqH41ajkPoI"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:371436457998:android:3e445b535c3e413bc5ac5f",
"android_client_info": {
"package_name": "com.example.arcoreapp2"
}
},
"oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3ja3NC89EJRtKgZPnuqv_lqH41ajkPoI"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:371436457998:android:c94fd45c9a85ae43c5ac5f",
"android_client_info": {
"package_name": "com.example.breathing_book"
}
},
"oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3ja3NC89EJRtKgZPnuqv_lqH41ajkPoI"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:371436457998:android:9c827576f8724b99c5ac5f",
"android_client_info": {
"package_name": "com.example.firebase_image"
}
},
"oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3ja3NC89EJRtKgZPnuqv_lqH41ajkPoI"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:371436457998:android:77f581fcd96072d0c5ac5f",
"android_client_info": {
"package_name": "com.example.imageclassification"
}
},
"oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3ja3NC89EJRtKgZPnuqv_lqH41ajkPoI"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:371436457998:android:5cd6012b6723ccf4c5ac5f",
"android_client_info": {
"package_name": "com.example.imageclassificationdemo"
}
},
"oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3ja3NC89EJRtKgZPnuqv_lqH41ajkPoI"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:371436457998:android:23b395ae0a8a1e59c5ac5f",
"android_client_info": {
"package_name": "com.heyletscode.artutorial"
}
},
"oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3ja3NC89EJRtKgZPnuqv_lqH41ajkPoI"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "371436457998-ecbpcbmfgc3s6i96tnsavkovv5cld50m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
\ No newline at end of file
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
package com.example.breathing_book;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.breathing_book", appContext.getPackageName());
}
}
\ No newline at end of file
This diff is collapsed.
lion
mouse
grasshopper
fox
ant
bear
king
\ No newline at end of file
package com.example.breathing_book;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.ar.sceneform.AnchorNode;
import com.google.ar.sceneform.Node;
import com.google.ar.sceneform.assets.RenderableSource;
import com.google.ar.sceneform.math.Vector3;
import com.google.ar.sceneform.rendering.ModelRenderable;
import com.google.ar.sceneform.rendering.ViewRenderable;
import com.google.ar.sceneform.ux.ArFragment;
import com.google.ar.sceneform.ux.TransformableNode;
import com.google.firebase.FirebaseApp;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import com.google.firebase.storage.FileDownloadTask;
import com.google.firebase.storage.FirebaseStorage;
import com.google.firebase.storage.StorageReference;
import java.io.File;
import java.io.IOException;
import java.util.Locale;
public class AugmentedActivity extends AppCompatActivity {
//EditText editText;
TextView textView;
ImageButton btn;
TextToSpeech textToSpeech;
String text;
@RequiresApi(api = Build.VERSION_CODES.N)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_augmented);
DatabaseReference reff = FirebaseDatabase.getInstance().getReference().child("Book");
reff.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
text = snapshot.child("text").getValue().toString();
}
@Override
public void onCancelled(@NonNull DatabaseError error) {
}
});
btn = findViewById(R.id.playBtn);
textToSpeech = new TextToSpeech(AugmentedActivity.this, new TextToSpeech.OnInitListener() {
@Override
public void onInit(int status) {
//if there is no error set language
if(status!= TextToSpeech.ERROR){
textToSpeech.setLanguage(Locale.ENGLISH);
}
}
});
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//convert text to speech
textToSpeech.setSpeechRate(0.6f);
textToSpeech.speak(text,TextToSpeech.QUEUE_FLUSH,null);
}
});
Intent intent = getIntent();
String value = intent.getStringExtra("key");
value = value.toLowerCase();
Button p1_button = (Button)findViewById(R.id.downloadBtn);
//p1_button.setText("" + value + ".glb");
FirebaseApp.initializeApp(this);
FirebaseStorage storage = FirebaseStorage.getInstance();
StorageReference modelRef = storage.getReference().child("" + value + ".glb");
ArFragment arFragment = (ArFragment) getSupportFragmentManager()
.findFragmentById(R.id.arFragment);
//arFragment.getPlaneDiscoveryController().hide();
//arFragment.getPlaneDiscoveryController().setInstructionView(null);
findViewById(R.id.downloadBtn)
.setOnClickListener(v -> {
try {
File file = File.createTempFile("+ value + ", "glb");
modelRef.getFile(file).addOnSuccessListener(new OnSuccessListener<FileDownloadTask.TaskSnapshot>() {
@RequiresApi(api = Build.VERSION_CODES.N)
@Override
public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {
buildModel(file);
}
});
} catch (IOException e) {
e.printStackTrace();
}
});
arFragment.setOnTapArPlaneListener((hitResult, plane, motionEvent) -> {
AnchorNode anchorNode = new AnchorNode(hitResult.createAnchor());
//anchorNode.setRenderable(renderable);
anchorNode.setParent(arFragment.getArSceneView().getScene());
//arFragment.getArSceneView().getScene().addChild(anchorNode);
TransformableNode n = new TransformableNode(arFragment.getTransformationSystem());
n.setRenderable(renderable);
n.getScaleController().setMinScale(0.14f);
n.getScaleController().setMaxScale(0.15f);
// Set Node's local scale before setting its Parent
n.setLocalScale(new Vector3(1.23f, 1.23f, 1.23f));
n.setParent(anchorNode);
n.select();
Node TitleNode = new Node();
TitleNode.setParent(n);
TitleNode.setEnabled(false);
TitleNode.setLocalPosition(new Vector3(0.0f, 1.75f, 0.0f));
ViewRenderable.builder()
.setView(this, R.layout.card_view)
.build()
.thenAccept(
(renderable) -> {
TitleNode.setRenderable(renderable);
TextView tv1 = (TextView) renderable.getView();
tv1.setText(text);
TitleNode.setEnabled(true);
})
.exceptionally(
(throwable) -> {
throw new AssertionError("Could not load card view.", throwable);
}
);
});
}
//text to speech
@Override
protected void onPause() {
if(textToSpeech!=null){
textToSpeech.stop();
textToSpeech.shutdown();
}
super.onPause();
}
private ModelRenderable renderable;
@RequiresApi(api = Build.VERSION_CODES.N)
private void buildModel(File file) {
RenderableSource renderableSource = RenderableSource
.builder()
.setSource(this, Uri.parse(file.getPath()), RenderableSource.SourceType.GLB)
.setRecenterMode(RenderableSource.RecenterMode.ROOT)
.build();
ModelRenderable
.builder()
.setSource(this, renderableSource)
.setRegistryId(file.getPath())
.build()
.thenAccept(modelRenderable -> {
Toast.makeText(this, "Model built", Toast.LENGTH_SHORT).show();;
renderable = modelRenderable;
});
}
}
package com.example.breathing_book;
import android.graphics.Color;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.github.mikephil.charting.charts.BarChart;
import com.github.mikephil.charting.data.BarData;
import com.github.mikephil.charting.data.BarDataSet;
import com.github.mikephil.charting.data.BarEntry;
import com.github.mikephil.charting.utils.ColorTemplate;
import java.util.ArrayList;
public class BarChartActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bar_chart);
BarChart barChart = findViewById(R.id.barchart);
ArrayList<BarEntry> xAxisLabel = new ArrayList<>();
//days vs minutes
xAxisLabel.add(new BarEntry(1,45));
xAxisLabel.add(new BarEntry(2,55));
xAxisLabel.add(new BarEntry(3,155));
xAxisLabel.add(new BarEntry(4,155));
xAxisLabel.add(new BarEntry(5,100));
xAxisLabel.add(new BarEntry(6,30));
xAxisLabel.add(new BarEntry(7,20));
BarDataSet barDataSet = new BarDataSet(xAxisLabel,"Usage");
barDataSet.setColors(ColorTemplate.COLORFUL_COLORS);
barDataSet.setValueTextColor(Color.BLACK);
barDataSet.setValueTextSize(16f);
BarData bardata = new BarData(barDataSet);
barChart.setFitBars(true);
barChart.setData(bardata);
barChart.animateY(2000);
}
}
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
public class ListenList extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_listen_list);
ListView listView = findViewById(R.id.listview);
List<String> list = new ArrayList<>();
list.add("Exercise-01");
list.add("Exercise-02");
list.add("Exercise-03");
list.add("Exercise-04");
ArrayAdapter<String> arrayAdapter = new ArrayAdapter <>(this, android.R.layout.simple_expandable_list_item_1,list);
listView.setAdapter(arrayAdapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if(position==0){
//clicked apple
//startActivity(new Intent(ReadList.this,Read_Story.class));
String sentence = "A lion was once sleeping in the jungle when a mouse started running up. ";
Intent intent = new Intent(ListenList.this,Listen_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
}else if(position==1){
//clicked orange
// startActivity(new Intent(MainActivity.this,OrangeActivity.class));
String sentence = "For a long time he lived in the toy cupboard or on the nursery floor. ";
Intent intent = new Intent(ListenList.this,Listen_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
}else if(position==2){
String sentence = "They lived with their mother in a sand bank. ";
Intent intent = new Intent(ListenList.this,Listen_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
//For a long time he lived in the toy cupboard or on the nursery floor
}else if(position==3){
String sentence = "As soon as he saw her the prince fell in love with the beautiful girl. ";
Intent intent = new Intent(ListenList.this,Listen_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
}
}
});
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import java.util.Locale;
public class Listen_Story extends AppCompatActivity {
EditText editText;
TextView textView;
Button btn;
TextToSpeech textToSpeech;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_listen_story);
textView = findViewById(R.id.textView);
btn = findViewById(R.id.button2);
// editText = findViewById(R.id.editText);
// editText.setText("");
textView.setText(" ");
String sentence = getIntent().getStringExtra("keySentence");
// editText.setText(sentence);
textView.setText(sentence);
textToSpeech = new TextToSpeech(Listen_Story.this, new TextToSpeech.OnInitListener() {
@Override
public void onInit(int status) {
//if there is no error set language
if(status!= TextToSpeech.ERROR){
textToSpeech.setLanguage(Locale.ENGLISH);
}
}
});
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//get text
String text = textView.getText().toString();
//convert text to speech
textToSpeech.setSpeechRate(0.6f);
textToSpeech.speak(text,TextToSpeech.QUEUE_FLUSH,null);
}
});
}
@Override
protected void onPause() {
if(textToSpeech!=null){
textToSpeech.stop();
textToSpeech.shutdown();
}
super.onPause();
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.chaquo.python.PyObject;
import com.chaquo.python.Python;
import com.chaquo.python.android.AndroidPlatform;
public class MainActivity extends AppCompatActivity {
TextView textView;
private CardView profile,listen,read,game,progress,ar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dashboard_lite);
// textView = (TextView)findViewById(R.id.textview);
// Button button1,button2;
//
// button1 = (Button) findViewById(R.id.button);
// button2 = (Button) findViewById(R.id.button3);
//
// button2.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// Intent intent2 = new Intent(MainActivity.this,ReadList.class);
// startActivity(intent2);
// }
// });
//
// button1.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// Intent intent1 = new Intent(MainActivity.this,ListenList.class);
// startActivity(intent1);
// }
// });
listen = findViewById(R.id.listen);
listen.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(MainActivity.this, "Exercise Loading...", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MainActivity.this, ListenList.class);
startActivity(intent);
}
});
read = findViewById(R.id.read);
read.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(MainActivity.this, "Exercise Loading...", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MainActivity.this, ReadList.class);
startActivity(intent);
}
});
game = findViewById(R.id.game);
game.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(MainActivity.this, "Game Loading...", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MainActivity.this, SelectAge.class);
startActivity(intent);
}
});
progress = findViewById(R.id.progress);
progress.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(MainActivity.this, "Progress Loading...", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MainActivity.this, ProgressActivity.class);
startActivity(intent);
}
});
ar = findViewById(R.id.augmentbutton);
ar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(MainActivity.this, "Augmented Reality Loading...", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MainActivity.this, augment_mainActivity.class);
startActivity(intent);
}
});
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class Navigation extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_navigation);
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class ProgressActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_progress);
findViewById(R.id.buttonUsage).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(getApplicationContext(),UsageProgressActivity.class));
}
});
findViewById(R.id.buttonRaccuracy).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(getApplicationContext(),RAccuracyActivity.class));
}
});
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Color;
import android.os.Bundle;
import com.github.mikephil.charting.charts.LineChart;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.LineData;
import com.github.mikephil.charting.data.LineDataSet;
import com.github.mikephil.charting.interfaces.datasets.ILineDataSet;
import java.util.ArrayList;
public class RAccuracyActivity extends AppCompatActivity {
LineChart lineChart;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_raccuracy);
lineChart = findViewById(R.id.Raccuracychart);
LineDataSet lineDataSet = new LineDataSet(lineChartDataSet(),"data set");
ArrayList<ILineDataSet> iLineDataSets = new ArrayList<>();
iLineDataSets.add(lineDataSet);
LineData lineData = new LineData(iLineDataSets);
lineChart.setData(lineData);
lineChart.invalidate();
//if you want set background color use below method
//lineChart.setBackgroundColor(Color.RED);
// set text if data are are not available
lineChart.setNoDataText("Data not Available");
//you can modify your line chart graph according to your requirement there are lots of method available in this library
//now customize line chart
lineDataSet.setColor(Color.BLUE);
lineDataSet.setCircleColor(Color.RED);
lineDataSet.setDrawCircles(true);
lineDataSet.setDrawCircleHole(true);
lineDataSet.setLineWidth(5);
lineDataSet.setCircleRadius(10);
lineDataSet.setCircleHoleRadius(10);
lineDataSet.setValueTextSize(10);
lineDataSet.setValueTextColor(Color.BLACK);
}
private ArrayList<Entry> lineChartDataSet(){
ArrayList<Entry> dataSet = new ArrayList<Entry>();
dataSet.add(new Entry(0,40));
dataSet.add(new Entry(1,78));
dataSet.add(new Entry(2,80));
dataSet.add(new Entry(3,65));
dataSet.add(new Entry(4,92));
dataSet.add(new Entry(5,87));
dataSet.add(new Entry(6,68));
dataSet.add(new Entry(7,72));
dataSet.add(new Entry(8,60));
return dataSet;
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
public class ReadList extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_read_list);
ListView listView = findViewById(R.id.listview);
List<String> list = new ArrayList<>();
list.add("Exercise-01");
list.add("Exercise-02");
list.add("Exercise-03");
list.add("Exercise-04");
ArrayAdapter <String> arrayAdapter = new ArrayAdapter <>(this, android.R.layout.simple_expandable_list_item_1,list);
listView.setAdapter(arrayAdapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if(position==0){
//clicked apple
//startActivity(new Intent(ReadList.this,Read_Story.class));
String sentence = "a lion was once sleeping in the jungle when a mouse started running up ";
Intent intent = new Intent(ReadList.this,Read_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
}else if(position==1){
//clicked orange
// startActivity(new Intent(MainActivity.this,OrangeActivity.class));
String sentence = "for a long time he lived in the toy cupboard or on the nursery floor ";
Intent intent = new Intent(ReadList.this,Read_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
}else if(position==2){
String sentence = "they lived with their mother in a sand bank ";
Intent intent = new Intent(ReadList.this,Read_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
//For a long time he lived in the toy cupboard or on the nursery floor
}else if(position==3){
String sentence = "as soon as he saw her the prince fell in love with the beautiful girl ";
Intent intent = new Intent(ReadList.this,Read_Story.class);
intent.putExtra("keySentence", sentence);
startActivity(intent);
}
}
});
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Bundle;
import android.speech.RecognitionListener;
import android.speech.RecognizerIntent;
import android.speech.SpeechRecognizer;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList;
public class Read_Story extends AppCompatActivity {
ImageButton imageButton;
EditText editText;
EditText editText1;
TextView textView1, textView2, textView3,textView4;
int count =0;
String convertedText;
int diff;
SpeechRecognizer speechRecognizer;
public int distance(String a, String b)
{
a = a.toLowerCase();
b = b.toLowerCase();
int[] costs = new int[b.length() + 1];
for (int j = 0; j < costs.length; j++)
costs[j] = j;
for (int i = 1; i <= a.length(); i++)
{
costs[0] = i;
int nw = i - 1;
for (int j = 1; j <= b.length(); j++)
{
int cj = Math.min(1 + Math.min(costs[j], costs[j - 1]),
a.charAt(i - 1) == b.charAt(j - 1) ? nw : nw + 1);
nw = costs[j];
costs[j] = cj;
}
}
return costs[b.length()];
}
@SuppressLint("WrongViewCast")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_read_story);
// String sentence = "there was an old mother pig";
String sentence = getIntent().getStringExtra("keySentence");
String Recognized_sentence;
ArrayList<String> searchWords = new ArrayList<String>();
imageButton =findViewById(R.id.button);
// editText = findViewById(R.id.edittext);
textView1 = findViewById(R.id.textView);
textView2 = findViewById(R.id.textView2);
textView3 = findViewById(R.id.textView3);
textView4 = findViewById(R.id.textView4);
textView1.setText(sentence);
if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED)
{
ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.RECORD_AUDIO},1);
}
speechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);
Intent speechRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
imageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//editText.setText("");
if (count == 0){
//startListening
speechRecognizer.startListening(speechRecognizerIntent);
count=1;
}
else{
//stop listening
speechRecognizer.stopListening();
count=0;
}
}
});
speechRecognizer.setRecognitionListener(new RecognitionListener() {
@Override
public void onReadyForSpeech(Bundle params) {
}
@Override
public void onBeginningOfSpeech() {
}
@Override
public void onRmsChanged(float rmsdB) {
}
@Override
public void onBufferReceived(byte[] buffer) {
}
@Override
public void onEndOfSpeech() {
}
@Override
public void onError(int error) {
}
@Override
public void onResults(Bundle results) {
ArrayList<String> data = results.getStringArrayList(speechRecognizer.RESULTS_RECOGNITION);
//editText.setText(data.get(0));
//String Recognized_sentence = data.get(0);
//textView4.setText(data.get(0));
convertedText = data.get(0).toLowerCase();
diff = distance(sentence, convertedText);
// textView1.setText(" " +diff);
int p = sentence.length();
int q = convertedText.length();
String LCS = findLengthOfLCS(sentence, convertedText, p, q);
// sampleTextView2.setText(LCS);
String [] txt =LCS.split(" ");
for(int r=0; r<txt.length;r++) {
searchWords.add(txt[r]);
}
// TextView sampleTextView = new TextView(currentContext); // currentContext = getContext();
if (searchWords != null) {
Spannable newText = setSpanHighlight(sentence, searchWords);
textView2.setText(newText, TextView.BufferType.SPANNABLE);
}
else{
textView2.setText(sentence);
}
int lengthOfTranscript =sentence.length() ;
int Result = (lengthOfTranscript - diff) *100 /lengthOfTranscript;
if(Result >=0){
Result = Result;
}
else{
Result=0;
}
textView3.setText(" Accuracy :" +Result +"%");
}
@Override
public void onPartialResults(Bundle partialResults) {
}
@Override
public void onEvent(int eventType, Bundle params) {
}
});
}
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == 1) {
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Toast.makeText(this, "Permission Granted", Toast.LENGTH_SHORT);
} else {
Toast.makeText(this, "Permission Denied", Toast.LENGTH_SHORT);
}
}
}
public String findLengthOfLCS(String str1, String str2, int p, int q) {
// create a matrix which act as a table for LCS
int[][] tableForLCS = new int[p + 1][q + 1];
// fill the table in the bottom up way
for (int i = 0; i <= p; i++) {
for (int j = 0; j <= q; j++) {
if (i == 0 || j == 0)
tableForLCS[i][j] = 0; // Fill each cell corresponding to first row and first column with 0
else if (str1.charAt(i - 1) == str2.charAt(j - 1))
tableForLCS[i][j] = tableForLCS[i - 1][j - 1] + 1; // add 1 in the cell of the previous row and column and fill the current cell with it
else
tableForLCS[i][j] = Math.max(tableForLCS[i - 1][j], tableForLCS[i][j - 1]); //find the maximum value from the cell of the previous row and current column and the cell of the current row and previous column
}
}
int index = tableForLCS[p][q];
int temp = index;
char[] longestCommonSubsequence = new char[index + 1];
longestCommonSubsequence[index] = '\0';
int i = p, j = q;
String lcs ="";
while (i > 0 && j > 0) {
if (str1.charAt(i - 1) == str2.charAt(j - 1)) {
longestCommonSubsequence[index - 1] = str1.charAt(i - 1);
i--;
j--;
index--;
}
else if (tableForLCS[i - 1][j] > tableForLCS[i][j - 1])
i--;
else
j--;
}
for (int k = 0; k <= temp; k++)
lcs = lcs + longestCommonSubsequence[k];
return lcs;
}
private Spannable setSpanHighlight(String text, @NonNull ArrayList<String> searchWord) {
Spannable newText = new SpannableString(text);
if (searchWord.size() != 0) {
for (String word : searchWord){
if (text.contains(word)){
int beginIndex = text.indexOf(String.valueOf(word)); //Unnecessary 'String.valueOf()' call => if you have something else than String
int endIndex = beginIndex + word.length();
newText.setSpan(
new ForegroundColorSpan(Color.BLUE),
beginIndex,
endIndex,
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
}
}
}
return newText;
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class SelectAge extends AppCompatActivity {
Button button1;
Button button2;
Button button3;
Button button4;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_select_age);
button1 =(Button)findViewById(R.id.ageButton1);
button2 =(Button)findViewById(R.id.ageButton2);
button3 =(Button)findViewById(R.id.ageButton3);
button4 =(Button)findViewById(R.id.ageButton4);
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(SelectAge.this, com.example.breathing_book.age5_to_6.age5_Levels.class);
startActivity(intent);
}
});
button2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(SelectAge.this, com.example.breathing_book.age7_to_8.age7_Levels.class);
startActivity(intent);
}
});
button3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(SelectAge.this, com.example.breathing_book.age9to_10.age9_Levels.class);
startActivity(intent);
}
});
button4.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(SelectAge.this, com.example.breathing_book.age11_to_12.age11_Levels.class);
startActivity(intent);
}
});
}
}
\ No newline at end of file
package com.example.breathing_book;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Color;
import android.os.Bundle;
import com.github.mikephil.charting.charts.BarChart;
import com.github.mikephil.charting.data.BarData;
import com.github.mikephil.charting.data.BarDataSet;
import com.github.mikephil.charting.data.BarEntry;
import com.github.mikephil.charting.utils.ColorTemplate;
import java.util.ArrayList;
public class UsageProgressActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_usage_progress);
BarChart barChart = findViewById(R.id.usage);
ArrayList<BarEntry> xAxisLabel = new ArrayList<>();
//days vs minutes
xAxisLabel.add(new BarEntry(1,60));
xAxisLabel.add(new BarEntry(2,55));
xAxisLabel.add(new BarEntry(3,95));
xAxisLabel.add(new BarEntry(4,87));
xAxisLabel.add(new BarEntry(5,75));
xAxisLabel.add(new BarEntry(6,120));
xAxisLabel.add(new BarEntry(7,100));
BarDataSet barDataSet = new BarDataSet(xAxisLabel,"Usage");
barDataSet.setColors(ColorTemplate.COLORFUL_COLORS);
barDataSet.setValueTextColor(Color.BLACK);
barDataSet.setValueTextSize(16f);
BarData bardata = new BarData(barDataSet);
barChart.setFitBars(true);
barChart.setData(bardata);
barChart.animateY(2000);
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions.age11L1_Q1;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level1;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level1Questions.age10L1_Q1;
public class age11Level1 extends AppCompatActivity {
ImageButton imageButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_level1);
imageButton = (ImageButton)findViewById(R.id.age11Level1play);
imageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11Level1.this, age11L1_Q1.class);
startActivity(intent);
}
});
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions.age11L1_Q1;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q1;
public class age11Level2 extends AppCompatActivity {
ImageButton imageButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_level2);
imageButton = (ImageButton)findViewById(R.id.age11Level1play);
imageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11Level2.this, age11L2_Q1.class);
startActivity(intent);
}
});
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q1;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions.age11L3_Q1;
public class age11Level3 extends AppCompatActivity {
ImageButton imageButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_level3);
imageButton = (ImageButton)findViewById(R.id.age11Level1play);
imageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11Level3.this, age11L3_Q1.class);
startActivity(intent);
}
});
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q1;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q2;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level3Questions.age10L3_Q1;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level3Questions.age10L3_Q2;
public class age11L1_Q1 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer correctAnsCount = 0;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q1);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton3.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q1.this);
LayoutInflater inflater = age11L1_Q1.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q1.this, age11L1_Q2.class);
intent.putExtra("correctCount", correctAnsCount+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q1.this);
LayoutInflater inflater = age11L1_Q1.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q1.this, age11L1_Q2.class);
intent.putExtra("correctCount", correctAnsCount);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q1.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q10 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q10);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton2.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q10.this);
LayoutInflater inflater = age11L1_Q10.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q10.this, age11L1_results.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q10.this);
LayoutInflater inflater = age11L1_Q10.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q10.this, age11L1_results.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q10.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q2;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q3;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level3Questions.age10L3_Q2;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level3Questions.age10L3_Q3;
public class age11L1_Q2 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q2);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton3.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q2.this);
LayoutInflater inflater = age11L1_Q2.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q2.this, age11L1_Q3.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q2.this);
LayoutInflater inflater = age11L1_Q2.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q2.this, age11L1_Q3.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q2.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q3 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q3);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton2.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q3.this);
LayoutInflater inflater = age11L1_Q3.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q3.this, age11L1_Q4.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q3.this);
LayoutInflater inflater = age11L1_Q3.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q3.this, age11L1_Q4.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q3.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q4 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q4);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton1.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q4.this);
LayoutInflater inflater = age11L1_Q4.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q4.this, age11L1_Q5.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q4.this);
LayoutInflater inflater = age11L1_Q4.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q4.this, age11L1_Q5.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q4.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q5 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q5);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton2.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q5.this);
LayoutInflater inflater = age11L1_Q5.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q5.this, age11L1_Q6.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q5.this);
LayoutInflater inflater = age11L1_Q5.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q5.this, age11L1_Q6.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q5.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q6 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q6);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton3.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q6.this);
LayoutInflater inflater = age11L1_Q6.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q6.this, age11L1_Q7.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q6.this);
LayoutInflater inflater = age11L1_Q6.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q6.this, age11L1_Q7.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q6.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q7 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q7);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton4.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q7.this);
LayoutInflater inflater = age11L1_Q7.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q7.this, age11L1_Q8.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q7.this);
LayoutInflater inflater = age11L1_Q7.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q7.this, age11L1_Q8.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q7.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q8 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q8);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton1.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q8.this);
LayoutInflater inflater = age11L1_Q8.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q8.this, age11L1_Q9.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q8.this);
LayoutInflater inflater = age11L1_Q8.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q8.this, age11L1_Q9.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q8.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L1_Q9 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_q9);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton4.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q9.this);
LayoutInflater inflater = age11L1_Q9.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q9.this, age11L1_Q10.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L1_Q9.this);
LayoutInflater inflater = age11L1_Q9.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_Q9.this, age11L1_Q10.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L1_Q9.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.SelectAge;
import com.example.breathing_book.age11_to_12.age11Levels.age11Level1;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level3;
import com.example.breathing_book.age9to_10.age10_Level1.age10_Level3Questions.age10L3_results;
import nl.dionsegijn.konfetti.KonfettiView;
import nl.dionsegijn.konfetti.models.Shape;
import nl.dionsegijn.konfetti.models.Size;
public class age11L1_results extends AppCompatActivity {
private TextView textView1;
private TextView textView2;
private ImageView imageView1;
private ImageView imageView2;
private KonfettiView konfettiView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l1_results);
textView1 = (TextView)findViewById(R.id.age11_result);
textView2 = (TextView)findViewById(R.id.age11_result_outof);
imageView1 = (ImageView) findViewById(R.id.age11PlayAgain);
imageView2 = (ImageView) findViewById(R.id.age11GoHome);
konfettiView = (KonfettiView)findViewById(R.id.viewKonfetti);
imageView1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L1_results.this, age11Level1.class);
startActivity(intent);
}
});
imageView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent mainIntent = new Intent(age11L1_results.this, SelectAge.class);
startActivity(mainIntent);
age11L1_results.this.finish();
}
});
int data = getIntent().getExtras().getInt("correctCount");
if (data >= 8){
textView1.setText("A");
textView2.setText("You got "+data+" marks out of 10");
konfettiView.build()
.addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
.setDirection(359.0, 359.0)
.setSpeed(1f, 5f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(new Size(12, 5))
.setPosition(-50f, konfettiView.getWidth() + 50f, -50f, -50f)
.streamFor(300, 5000L);
}else if(data <= 7 && data >= 5){
textView1.setText("B");
textView2.setText("You got "+data+" marks out of 10");
konfettiView.build()
.addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
.setDirection(0.0, 359.0)
.setSpeed(1f, 5f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(new Size(12, 5))
.setPosition(-50f, konfettiView.getWidth() + 50f, -50f, -50f)
.streamFor(300, 5000L);
}else {
textView1.setText("C");
textView2.setText("You got "+data+" marks out of 10");
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions.age11L1_Q1;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions.age11L1_Q2;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions.age11L3_Q1;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions.age11L3_Q2;
public class age11L2_Q1 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer correctAnsCount = 0;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q1);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton2.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q1.this);
LayoutInflater inflater = age11L2_Q1.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q1.this, age11L2_Q2.class);
intent.putExtra("correctCount", correctAnsCount+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q1.this);
LayoutInflater inflater = age11L2_Q1.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q1.this, age11L2_Q2.class);
intent.putExtra("correctCount", correctAnsCount);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q1.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q10 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q10);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked()){
if (radioButton1.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q10.this);
LayoutInflater inflater = age11L2_Q10.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q10.this, age11L2_results.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q10.this);
LayoutInflater inflater = age11L2_Q10.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q10.this, age11L2_results.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q10.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions.age11L1_Q2;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions.age11L1_Q3;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions.age11L3_Q2;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions.age11L3_Q3;
public class age11L2_Q2 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q2);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton1.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q2.this);
LayoutInflater inflater = age11L2_Q2.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q2.this, age11L2_Q3.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q2.this);
LayoutInflater inflater = age11L2_Q2.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q2.this, age11L2_Q3.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q2.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q3 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q3);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked()){
if (radioButton1.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q3.this);
LayoutInflater inflater = age11L2_Q3.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q3.this, age11L2_Q4.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q3.this);
LayoutInflater inflater = age11L2_Q3.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q3.this, age11L2_Q4.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q3.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q4 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q4);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked()){
if (radioButton2.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q4.this);
LayoutInflater inflater = age11L2_Q4.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q4.this, age11L2_Q5.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q4.this);
LayoutInflater inflater = age11L2_Q4.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q4.this, age11L2_Q5.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q4.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q5 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q5);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton4.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q5.this);
LayoutInflater inflater = age11L2_Q5.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q5.this, age11L2_Q6.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q5.this);
LayoutInflater inflater = age11L2_Q5.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q5.this, age11L2_Q6.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q5.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q6 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q6);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton3.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q6.this);
LayoutInflater inflater = age11L2_Q6.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q6.this, age11L2_Q7.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q6.this);
LayoutInflater inflater = age11L2_Q6.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q6.this, age11L2_Q7.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q6.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q7 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q7);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton4.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q7.this);
LayoutInflater inflater = age11L2_Q7.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q7.this, age11L2_Q8.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q7.this);
LayoutInflater inflater = age11L2_Q7.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q7.this, age11L2_Q8.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q7.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q8 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q8);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton2.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q8.this);
LayoutInflater inflater = age11L2_Q8.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q8.this, age11L2_Q9.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q8.this);
LayoutInflater inflater = age11L2_Q8.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q8.this, age11L2_Q9.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q8.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L2_Q9 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_q9);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton1.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q9.this);
LayoutInflater inflater = age11L2_Q9.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q9.this, age11L2_Q10.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L2_Q9.this);
LayoutInflater inflater = age11L2_Q9.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_Q9.this, age11L2_Q10.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L2_Q9.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.SelectAge;
import com.example.breathing_book.age11_to_12.age11Levels.age11Level1;
import com.example.breathing_book.age11_to_12.age11Levels.age11Level2;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level1Questions.age11L1_results;
import nl.dionsegijn.konfetti.KonfettiView;
import nl.dionsegijn.konfetti.models.Shape;
import nl.dionsegijn.konfetti.models.Size;
public class age11L2_results extends AppCompatActivity {
private TextView textView1;
private TextView textView2;
private ImageView imageView1;
private ImageView imageView2;
private KonfettiView konfettiView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l2_results);
textView1 = (TextView)findViewById(R.id.age11_result);
textView2 = (TextView)findViewById(R.id.age11_result_outof);
imageView1 = (ImageView) findViewById(R.id.age11PlayAgain);
imageView2 = (ImageView) findViewById(R.id.age11GoHome);
konfettiView = (KonfettiView)findViewById(R.id.viewKonfetti);
imageView1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L2_results.this, age11Level2.class);
startActivity(intent);
}
});
imageView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent mainIntent = new Intent(age11L2_results.this, SelectAge.class);
startActivity(mainIntent);
age11L2_results.this.finish();
}
});
int data = getIntent().getExtras().getInt("correctCount");
if (data >= 8){
textView1.setText("A");
textView2.setText("You got "+data+" marks out of 10");
konfettiView.build()
.addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
.setDirection(359.0, 359.0)
.setSpeed(1f, 5f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(new Size(12, 5))
.setPosition(-50f, konfettiView.getWidth() + 50f, -50f, -50f)
.streamFor(300, 5000L);
}else if(data <= 7 && data >= 5){
textView1.setText("B");
textView2.setText("You got "+data+" marks out of 10");
konfettiView.build()
.addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
.setDirection(0.0, 359.0)
.setSpeed(1f, 5f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(new Size(12, 5))
.setPosition(-50f, konfettiView.getWidth() + 50f, -50f, -50f)
.streamFor(300, 5000L);
}else {
textView1.setText("C");
textView2.setText("You got "+data+" marks out of 10");
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q1;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_Q2;
public class age11L3_Q1 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer correctAnsCount = 0;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l3_q1);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()) {
if (radioButton2.isChecked()) {
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L3_Q1.this);
LayoutInflater inflater = age11L3_Q1.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
yourCountDownTimer.cancel();
Intent intent = new Intent(age11L3_Q1.this, age11L3_Q2.class);
intent.putExtra("correctCount", correctAnsCount + 1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
} else {
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L3_Q1.this);
LayoutInflater inflater = age11L3_Q1.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
yourCountDownTimer.cancel();
Intent intent = new Intent(age11L3_Q1.this, age11L3_Q2.class);
intent.putExtra("correctCount", correctAnsCount);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
} else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L3_Q1.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;
import com.example.breathing_book.R;
public class age11L3_Q10 extends AppCompatActivity {
private RadioButton radioButton1;
private RadioButton radioButton2;
private RadioButton radioButton3;
private RadioButton radioButton4;
private Button button1;
private Integer data;
private TextView textView;
CountDownTimer yourCountDownTimer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l3_q10);
radioButton1 =(RadioButton)findViewById(R.id.ans1);
radioButton2 =(RadioButton)findViewById(R.id.ans2);
radioButton3 =(RadioButton)findViewById(R.id.ans3);
radioButton4 =(RadioButton)findViewById(R.id.ans4);
textView = (TextView)findViewById(R.id.time);
button1 = (Button)findViewById(R.id.confirm);
data = getIntent().getExtras().getInt("correctCount");
System.out.println("Wtest"+data);
yourCountDownTimer = new CountDownTimer(10000, 1000) {
public void onTick(long millisUntilFinished) {
textView.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
textView.setText("Time Out!!!");
result();
}
}.start();
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
result();
}
});
}
private void result() {
if (radioButton1.isChecked() || radioButton2.isChecked() || radioButton3.isChecked() || radioButton4.isChecked()){
if (radioButton1.isChecked()){
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L3_Q10.this);
LayoutInflater inflater = age11L3_Q10.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.correct_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
yourCountDownTimer.cancel();
Intent intent = new Intent(age11L3_Q10.this, age11L3_results.class);
intent.putExtra("correctCount", data+1);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}else{
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(age11L3_Q10.this);
LayoutInflater inflater = age11L3_Q10.this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.wrong_answer, null);
dialogBuilder.setView(dialogView);
dialogBuilder.setCancelable(false);
Button button = (Button) dialogView.findViewById(R.id.goto_next);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
yourCountDownTimer.cancel();
Intent intent = new Intent(age11L3_Q10.this, age11L3_results.class);
intent.putExtra("correctCount", data);
startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
}
}else {
AlertDialog.Builder builder1 = new AlertDialog.Builder(age11L3_Q10.this);
builder1.setMessage("You must select a answer.");
builder1.setCancelable(true);
builder1.setNegativeButton(
"Ok",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert11 = builder1.create();
alert11.show();
}
}
}
\ No newline at end of file
package com.example.breathing_book.age11_to_12.age11Levels.age11_Level3Questions;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.breathing_book.R;
import com.example.breathing_book.SelectAge;
import com.example.breathing_book.age11_to_12.age11Levels.age11Level2;
import com.example.breathing_book.age11_to_12.age11Levels.age11Level3;
import com.example.breathing_book.age11_to_12.age11Levels.age11_Level2Questions.age11L2_results;
import nl.dionsegijn.konfetti.KonfettiView;
import nl.dionsegijn.konfetti.models.Shape;
import nl.dionsegijn.konfetti.models.Size;
public class age11L3_results extends AppCompatActivity {
private TextView textView1;
private TextView textView2;
private ImageView imageView1;
private ImageView imageView2;
private KonfettiView konfettiView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_age11_l3_results);
textView1 = (TextView)findViewById(R.id.age11_result);
textView2 = (TextView)findViewById(R.id.age11_result_outof);
imageView1 = (ImageView) findViewById(R.id.age11PlayAgain);
imageView2 = (ImageView) findViewById(R.id.age11GoHome);
konfettiView = (KonfettiView)findViewById(R.id.viewKonfetti);
imageView1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(age11L3_results.this, age11Level3.class);
startActivity(intent);
}
});
imageView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent mainIntent = new Intent(age11L3_results.this, SelectAge.class);
startActivity(mainIntent);
age11L3_results.this.finish();
}
});
int data = getIntent().getExtras().getInt("correctCount");
if (data >= 8){
textView1.setText("A");
textView2.setText("You got "+data+" marks out of 10");
konfettiView.build()
.addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
.setDirection(359.0, 359.0)
.setSpeed(1f, 5f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(new Size(12, 5))
.setPosition(-50f, konfettiView.getWidth() + 50f, -50f, -50f)
.streamFor(300, 5000L);
}else if(data <= 7 && data >= 5){
textView1.setText("B");
textView2.setText("You got "+data+" marks out of 10");
konfettiView.build()
.addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
.setDirection(0.0, 359.0)
.setSpeed(1f, 5f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(new Size(12, 5))
.setPosition(-50f, konfettiView.getWidth() + 50f, -50f, -50f)
.streamFor(300, 5000L);
}else {
textView1.setText("C");
textView2.setText("You got "+data+" marks out of 10");
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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