├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── drawable │ │ │ │ ├── assist_flat.png │ │ │ │ ├── rect_border.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── activity_join.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── content_join.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── zoho │ │ │ │ └── assist │ │ │ │ └── customer │ │ │ │ └── demo │ │ │ │ ├── Constants.kt │ │ │ │ ├── MainApplication.kt │ │ │ │ ├── ISessionCallbacks.kt │ │ │ │ ├── MainActivity.kt │ │ │ │ └── JoinActivity.kt │ │ ├── AndroidManifest.xml │ │ └── assets │ │ │ ├── loader.json │ │ │ └── error.json │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── zoho │ │ │ └── assist │ │ │ └── customer │ │ │ └── demo │ │ │ └── ExampleUnitTest.kt │ └── androidTest │ │ └── java │ │ └── com │ │ └── zoho │ │ └── assist │ │ └── customer │ │ └── demo │ │ └── ExampleInstrumentedTest.kt ├── proguard-rules.pro ├── build.gradle └── app.iml ├── .idea ├── compiler.xml ├── kotlinc.xml ├── misc.xml ├── deploymentTargetDropDown.xml └── shelf │ ├── Uncommitted_changes_before_Checkout_at_24_01_24__4_20pm__Changes_.xml │ ├── Uncommitted_changes_before_Checkout_at_24_01_24__4_20pm__Changes_1.xml │ └── Uncommitted_changes_before_Checkout_at_24_01_24,_4_20 pm_[Changes]1 │ └── shelved.patch ├── gradle └── wrapper │ └── gradle-wrapper.properties ├── README.md ├── settings.gradle ├── Assist-Customer-Android-SDK-demo.iml ├── gradle.properties ├── .gitignore ├── gradlew.bat ├── gradlew └── assets ├── loader.json └── error.json /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 50dp 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/assist_flat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/drawable/assist_flat.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoho/Assist-Customer-Android-SDK-Demo/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.idea/deploymentTargetDropDown.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rect_border.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/java/com/zoho/assist/customer/demo/Constants.kt: -------------------------------------------------------------------------------- 1 | package com.zoho.assist.customer.demo 2 | 3 | object Constants { 4 | const val SDK_TOKEN: String = "AuthToken" 5 | const val SESSION_KEY: String = "SESSION_KEY" 6 | 7 | const val NOTIFICATION_ACTION: String = "com.zoho.assist.customer.demo" 8 | const val NOTIFICATION_PENDING_INTENT_ID: Int = 1020 9 | } -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/shelf/Uncommitted_changes_before_Checkout_at_24_01_24__4_20pm__Changes_.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.idea/shelf/Uncommitted_changes_before_Checkout_at_24_01_24__4_20pm__Changes_1.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/test/java/com/zoho/assist/customer/demo/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.zoho.assist.customer.demo 2 | 3 | //import org.junit.Test 4 | // 5 | //import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | //class ExampleUnitTest { 13 | // @Test 14 | // fun addition_isCorrect() { 15 | // assertEquals(4, 2 + 2) 16 | // } 17 | //} 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Assist-Customer-Android-SDK-Demo 2 | 3 | The Zoho Assist Software Development Kit (SDK) for Android will help you build a custom app with the features and functionalities your customers need to join a session in Zoho Assist to share their screens. The design of the app UI can be based on your requirements and style guidelines, while the back-end of the app can be powered with the SDK. 4 | 5 | Go through the [documentation](https://www.zoho.com/assist/resources/mobilesdk/android/getting-started.html) to get started. 6 | -------------------------------------------------------------------------------- /app/src/main/java/com/zoho/assist/customer/demo/MainApplication.kt: -------------------------------------------------------------------------------- 1 | package com.zoho.assist.customer.demo 2 | 3 | import android.app.Application 4 | import com.zoho.assist.customer.AssistSDKApplication 5 | import com.zoho.assist.customer.AssistSession 6 | 7 | class MainApplication : AssistSDKApplication() { 8 | 9 | override fun onCreate() { 10 | super.onCreate() 11 | AssistSession.INSTANCE.setContext(this) 12 | AssistSession.INSTANCE.setAuthToken("") // Set your auth token here to enable some features 13 | 14 | 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | pluginManagement { 3 | repositories { 4 | google() 5 | mavenCentral() 6 | gradlePluginPortal() 7 | maven { url "https://maven.zohodl.com/"} 8 | } 9 | } 10 | 11 | dependencyResolutionManagement { 12 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 13 | repositories { 14 | google() 15 | mavenCentral() 16 | gradlePluginPortal() 17 | maven { url "https://maven.zohodl.com/"} 18 | } 19 | } 20 | include ':app' 21 | rootProject.name='Assist-Customer-Android-SDK-demo' 22 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Assist-Customer-Android-SDK-Demo 3 | Send a message 4 | Session Key 5 | Enroll 6 | Un-Enroll 7 | Service Queue 8 | Result 9 | Description 10 | 11 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/zoho/assist/customer/demo/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.zoho.assist.customer.demo 2 | 3 | //import androidx.test.platform.app.InstrumentationRegistry 4 | //import androidx.test.ext.junit.runners.AndroidJUnit4 5 | // 6 | //import org.junit.Test 7 | //import org.junit.runner.RunWith 8 | // 9 | //import org.junit.Assert.* 10 | // 11 | ///** 12 | // * Instrumented test, which will execute on an Android device. 13 | // * 14 | // * See [testing documentation](http://d.android.com/tools/testing). 15 | // */ 16 | //@RunWith(AndroidJUnit4::class) 17 | //class ExampleInstrumentedTest { 18 | // @Test 19 | // fun useAppContext() { 20 | // // Context of the app under test. 21 | // val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | // assertEquals("com.zoho.assist.customer.demo", appContext.packageName) 23 | // } 24 | //} 25 | -------------------------------------------------------------------------------- /Assist-Customer-Android-SDK-demo.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Specifies the JVM arguments used for the daemon process. 2 | # The setting is particularly useful for tweaking memory settings. 3 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 4 | android.enableJetifier=true 5 | android.useAndroidX=true 6 | org.gradle.jvmargs=-Xmx3g -Dfile.encoding=UTF-8 --add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED 7 | #org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 8 | #org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 9 | #org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED 10 | #android.enableAapt2=false 11 | kapt.use.worker.api=false 12 | kapt.incremental.apt=false 13 | #org.gradle.unsafe.configuration-cache=true 14 | #org.gradle.unsafe.configuration-cache-problems=warn' 15 | # Kotlin code style for this project: "official" or "obsolete": 16 | kotlin.code.style=official 17 | android.injected.testOnly=false -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.aar 4 | *.ap_ 5 | *.aab 6 | 7 | # Files for the ART/Dalvik VM 8 | *.dex 9 | 10 | # Java class files 11 | *.class 12 | 13 | # Generated files 14 | bin/ 15 | gen/ 16 | out/ 17 | # Uncomment the following line in case you need and you don't have the release build type files in your app 18 | # release/ 19 | 20 | # Gradle files 21 | .gradle/ 22 | build/ 23 | 24 | # Local configuration file (sdk path, etc) 25 | local.properties 26 | 27 | # Proguard folder generated by Eclipse 28 | proguard/ 29 | 30 | # Log Files 31 | *.log 32 | 33 | # Android Studio Navigation editor temp files 34 | .navigation/ 35 | 36 | # Android Studio captures folder 37 | captures/ 38 | 39 | # IntelliJ 40 | *.iml 41 | .idea/workspace.xml 42 | .idea/tasks.xml 43 | .idea/gradle.xml 44 | .idea/assetWizardSettings.xml 45 | .idea/dictionaries 46 | .idea/libraries 47 | # Android Studio 3 in .gitignore file. 48 | .idea/caches 49 | .idea/modules.xml 50 | # Comment next line if keeping position of elements in Navigation Editor is relevant for you 51 | .idea/navEditor.xml 52 | 53 | # Keystore files 54 | # Uncomment the following lines if you do not want to check your keystore files in. 55 | #*.jks 56 | #*.keystore 57 | 58 | # External native build folder generated in Android Studio 2.2 and later 59 | .externalNativeBuild 60 | .cxx/ 61 | 62 | # Google Services (e.g. APIs or Firebase) 63 | # google-services.json 64 | 65 | # Freeline 66 | freeline.py 67 | freeline/ 68 | freeline_project_description.json 69 | 70 | # fastlane 71 | fastlane/report.xml 72 | fastlane/Preview.html 73 | fastlane/screenshots 74 | fastlane/test_output 75 | fastlane/readme.md 76 | 77 | # Version control 78 | vcs.xml 79 | 80 | # lint 81 | lint/intermediates/ 82 | lint/generated/ 83 | lint/outputs/ 84 | lint/tmp/ 85 | # lint/reports/ -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_join.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 15 | 16 | 26 | 27 | 28 | 29 | 31 | 32 | 39 | 40 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-parcelize' 4 | apply plugin: 'kotlin-kapt' 5 | android { 6 | compileSdk 35 7 | namespace "com.zoho.assist.customer.demo" 8 | defaultConfig { 9 | applicationId "com.zoho.assist.customer.demo" 10 | minSdkVersion 21 11 | targetSdk 35 12 | versionCode 1 13 | versionName "1.0" 14 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 15 | } 16 | compileOptions { 17 | sourceCompatibility JavaVersion.VERSION_17 18 | targetCompatibility = JavaVersion.VERSION_17 19 | } 20 | kotlinOptions { 21 | jvmTarget = "17" 22 | } 23 | buildFeatures { 24 | buildConfig true 25 | viewBinding true 26 | // compose true 27 | dataBinding true 28 | } 29 | buildTypes { 30 | release { 31 | minifyEnabled false 32 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 33 | } 34 | } 35 | } 36 | 37 | configurations { 38 | cleanedAnnotations 39 | implementation.exclude group: 'org.jetbrains' , module:'annotations' 40 | } 41 | 42 | dependencies { 43 | implementation fileTree(dir: 'libs', include: ['*.jar']) 44 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 45 | implementation 'androidx.appcompat:appcompat:1.7.1' 46 | implementation 'androidx.core:core-ktx:1.16.0' 47 | implementation 'androidx.constraintlayout:constraintlayout:2.2.1' 48 | implementation 'com.google.android.material:material:1.13.0' 49 | implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' 50 | api 'com.zoho.assist:customer:1.8.3' 51 | 52 | // testImplementation 'junit:junit:4.12' 53 | // androidTestImplementation 'androidx.test.ext:junit:1.1.0' 54 | // androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 55 | 56 | } 57 | 58 | 59 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 11 | 13 | 14 | 15 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 37 | 38 | 39 | 40 | 42 | 43 | 44 | 45 | 46 | 49 | 50 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 11 | 12 | 13 | 19 | 20 | 24 | 25 | 29 | 30 |