├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── android │ │ │ │ └── startup │ │ │ │ └── protectordemo │ │ │ │ ├── TestCrashHandler.java │ │ │ │ ├── TestCrashManager.java │ │ │ │ ├── TestCrashCallBack.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── TestProtectorTask.java │ │ │ │ └── ProtectorApp.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── android │ │ │ └── startup │ │ │ └── protector │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── android │ │ └── startup │ │ └── protector │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── protectorlib ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── android │ │ │ └── startup │ │ │ └── protector │ │ │ ├── iprotector │ │ │ ├── CrashCallBack.java │ │ │ ├── CrashManager.java │ │ │ └── ProtectorTask.java │ │ │ ├── constant │ │ │ └── SpConstant.java │ │ │ ├── test │ │ │ └── ProtectorTest.java │ │ │ ├── impl │ │ │ └── TagCrashManager.java │ │ │ ├── util │ │ │ ├── ProtectorThreadUtils.java │ │ │ ├── ProtectorSpUtils.java │ │ │ ├── ProtectorUtils.java │ │ │ └── ProtectorLogUtils.java │ │ │ ├── clear │ │ │ └── ProtectorClearer.java │ │ │ ├── handler │ │ │ └── ProtectorExceptionHandler.java │ │ │ └── Protector.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── android │ │ │ └── startup │ │ │ └── protector │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── android │ │ └── startup │ │ └── protector │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── protectorlib.iml ├── settings.gradle ├── .gradle └── 2.14.1 │ ├── taskArtifacts │ ├── cache.properties │ ├── fileHashes.bin │ ├── fileSnapshots.bin │ ├── taskArtifacts.bin │ ├── cache.properties.lock │ └── fileSnapshotsToTreeSnapshotsIndex.bin │ └── tasks │ ├── _app_compileDebugJavaWithJavac │ ├── localClassSetAnalysis │ │ ├── localClassSetAnalysis.bin │ │ └── localClassSetAnalysis.lock │ └── localJarClasspathSnapshot │ │ ├── localJarClasspathSnapshot.bin │ │ └── localJarClasspathSnapshot.lock │ └── _protectorlib_compileDebugJavaWithJavac │ ├── localClassSetAnalysis │ ├── localClassSetAnalysis.bin │ └── localClassSetAnalysis.lock │ └── localJarClasspathSnapshot │ ├── localJarClasspathSnapshot.bin │ └── localJarClasspathSnapshot.lock ├── .idea ├── copyright │ └── profiles_settings.xml ├── dictionaries │ └── liuzhao.xml ├── markdown-navigator │ └── profiles_settings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml ├── markdown-navigator.xml └── misc.xml ├── gradle └── wrapper │ └── gradle-wrapper.properties ├── .gitignore ├── local.properties ├── gradle.properties ├── StartUp-Protector.iml ├── StartUpProtector.iml ├── README.md ├── gradlew.bat ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /protectorlib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':protectorlib' 2 | -------------------------------------------------------------------------------- /.gradle/2.14.1/taskArtifacts/cache.properties: -------------------------------------------------------------------------------- 1 | #Fri Sep 22 11:57:56 CST 2017 2 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/dictionaries/liuzhao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | StartUp-Protector 3 | 4 | -------------------------------------------------------------------------------- /protectorlib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ProtectorLib 3 | 4 | -------------------------------------------------------------------------------- /.gradle/2.14.1/taskArtifacts/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/taskArtifacts/fileHashes.bin -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gradle/2.14.1/taskArtifacts/fileSnapshots.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/taskArtifacts/fileSnapshots.bin -------------------------------------------------------------------------------- /.gradle/2.14.1/taskArtifacts/taskArtifacts.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/taskArtifacts/taskArtifacts.bin -------------------------------------------------------------------------------- /.idea/markdown-navigator/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gradle/2.14.1/taskArtifacts/cache.properties.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/taskArtifacts/cache.properties.lock -------------------------------------------------------------------------------- /.gradle/2.14.1/taskArtifacts/fileSnapshotsToTreeSnapshotsIndex.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/taskArtifacts/fileSnapshotsToTreeSnapshotsIndex.bin -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_app_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuzhao2007/StartUp-Protector/HEAD/.gradle/2.14.1/tasks/_protectorlib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock -------------------------------------------------------------------------------- /protectorlib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /protectorlib/src/main/java/com/android/startup/protector/iprotector/CrashCallBack.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protector.iprotector; 2 | 3 | /** 4 | * Created by liuzhao on 2017/9/26. 5 | *

6 | * give the original Throwable and the CrashMsg to users when a crash happened 7 | */ 8 | public interface CrashCallBack { 9 | void uncaughtException(Throwable ex, String crashMsg); 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /protectorlib/src/main/java/com/android/startup/protector/constant/SpConstant.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protector.constant; 2 | 3 | /** 4 | * Created by liuzhao on 2017/9/22. 5 | */ 6 | 7 | public class SpConstant { 8 | 9 | public static final String CRASHCONUT = "crashCount"; 10 | public static final String CRASHTIME = "crashTime"; 11 | public static final String PROTECTORSPNAME = "startup_protector"; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /protectorlib/src/main/java/com/android/startup/protector/test/ProtectorTest.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protector.test; 2 | 3 | import com.android.startup.protector.util.ProtectorLogUtils; 4 | 5 | /** 6 | * Created by liuzhao on 2017/9/26. 7 | */ 8 | 9 | public class ProtectorTest { 10 | 11 | public static void testJavaCrash() { 12 | String string = null; 13 | ProtectorLogUtils.i("string:" + string); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/android/startup/protectordemo/TestCrashHandler.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protectordemo; 2 | 3 | import com.android.startup.protector.util.ProtectorLogUtils; 4 | 5 | /** 6 | * Created by liuzhao on 2017/9/26. 7 | */ 8 | 9 | public class TestCrashHandler implements Thread.UncaughtExceptionHandler { 10 | 11 | @Override 12 | public void uncaughtException(Thread t, Throwable e) { 13 | ProtectorLogUtils.i("crash occur"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /protectorlib/src/main/java/com/android/startup/protector/iprotector/CrashManager.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protector.iprotector; 2 | 3 | /** 4 | * Created by liuzhao on 2017/9/26. 5 | *

6 | * A Chance for caller to decide if restart 7 | */ 8 | 9 | public interface CrashManager { 10 | 11 | /** 12 | * you can decide on the basis of the situation 13 | * 14 | * @param crashMsg 15 | * @return 16 | */ 17 | boolean ifRestart(String crashMsg); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/java/com/android/startup/protectordemo/TestCrashManager.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protectordemo; 2 | 3 | import com.android.startup.protector.iprotector.CrashManager; 4 | 5 | /** 6 | * Created by liuzhao on 2017/9/26. 7 | */ 8 | 9 | public class TestCrashManager implements CrashManager { 10 | 11 | @Override 12 | public boolean ifRestart(String crashMsg) { 13 | // you can deside if setRestart app here ,true to start and false not. 14 | return true; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/src/test/java/com/android/startup/protector/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protector; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /protectorlib/src/test/java/com/android/startup/protector/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protector; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.ear 17 | *.zip 18 | *.tar.gz 19 | *.rar 20 | 21 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 22 | hs_err_pid* 23 | *.iml 24 | .gradle 25 | /local.properties 26 | /.idea/workspace.xml 27 | /.idea/libraries 28 | .DS_Store 29 | /build 30 | /captures 31 | .externalNativeBuild 32 | .gradle/2.14.1/ -------------------------------------------------------------------------------- /app/src/main/java/com/android/startup/protectordemo/TestCrashCallBack.java: -------------------------------------------------------------------------------- 1 | package com.android.startup.protectordemo; 2 | 3 | import com.android.startup.protector.iprotector.CrashCallBack; 4 | import com.android.startup.protector.util.ProtectorLogUtils; 5 | 6 | /** 7 | * Created by liuzhao on 2017/9/26. 8 | */ 9 | 10 | public class TestCrashCallBack implements CrashCallBack { 11 | 12 | @Override 13 | public void uncaughtException(Throwable ex, String crashMsg) { 14 | ProtectorLogUtils.i("crashMsg:" + crashMsg); 15 | ex.printStackTrace(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Tue Jul 31 21:34:59 CST 2018 11 | ndk.dir=/Users/liuzhao.futrue/Library/Android/sdk/ndk-bundle 12 | sdk.dir=/Users/liuzhao.futrue/Library/Android/sdk 13 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/liuzhao/Downloads/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /protectorlib/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/liuzhao/Downloads/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 13 | 18 | 19 |