This Tutorial aims to teach the user how to integrate his android app with Appgain.io cloud using appgain.io SDK and how to use the appgain.io products
We will use a basic app created in Android Studio (no specific version required) with Compile SDK Version = 26 and Min SDK Version = 15.
Mobile App Project created on Appgain.io dashboard.
Follow the Creating New Project tutorial
Android Studio uses Gradle (an advanced build toolkit) to automate and manage the build process while allowing you to define flexible custom build configurations. You can refer to Android Studio’s Build Guide for additional details.
To install Appgain SDK for Android in your Android Studio project, open your app/build.gradle file:
1-Add following line under dependencies:
2-Sync your build.gradle and we are ready to go.
3 - update your manifest permissions
if you don’t have app backend or you not using parse you will need only the following permissions:
4 - Create a new class:
4.1 make new class called AppController and extend application like that:
4.2 Add your new class name in name attribute inside application tag in your manifest file:
After SDK installation, now we would explain how to use the Appgain.io products with your app: