-
Download and install newest Android Studio: https://developer.android.com/studio
-
On the initial
Welcome to Android Studio
screen: clickConfigure > SDK Manager
option -
On the
SDK Manager > SDK Platforms
tab: checkAndroid 10.0 (Q)
option, clickApply
and follow the instructions if necessary. -
On the
SDK Manager > SDK Tools
tab: check theShow Package Details
checkbox, selectAndroid SDK Build-Tools 30.0.2
and clickApply
-
Back on the
Welcome to Android Studio
clickOpen an Exisiting Project
and select the Demo's folder -
In the project's build.gradle file, replace {GITHUB_USERNAME} and {GITHUB_PERSONAL_ACCESS_TOKEN} with your actual GitHub credentials to access the Trusted Form SDK. These credentials are required to authenticate and fetch the necessary dependencies. For information on how to setup Personal Access Tokens please see GitHub Documentation on Managing Personal Access Tokens
-
In the demo/build.gradle file, replace {MY_APP_ID} and {MY_API_TOKEN} with your App ID and API Token.
-
After the AS window loads click the 'Gradle Sync' button to set up all dependencies (highlighted on the screenshot below)
Note: The following assumes you do NOT have an AVD preconfigured. If you already have your AVD configured, please skip to step 15
-
Click Create Virtual Device, at the bottom of the AVD Manager dialog ** Note: The Select Hardware page appears.Notice that only some hardware profiles are indicated to include Play Store. This indicates that these profiles are fully CTS compliant and may use system images that include the Play Store app.**
-
Select a hardware profile, and then click Next. If you don't see the hardware profile you want, you can create or import a hardware profile.
The System Image page appears.
- Select a system image for API level 30 , and then click Next.
- Change AVD properties as needed, and then click Finish.
Click Show Advanced Settings to show more settings, such as the skin.
The new AVD appears in the Your Virtual Devices page or the Select Deployment Target dialog.
** If you are deploying to AVD then skip step 14 **
14. Connect your Android device through USB - you should be able to select it from Android Studio devices list (see screenshot). If it's not there you can try running the Tools > Troubleshoot Device Connections
tool (aka Connection Assistant
). You could also use an emulator, but on Android it's a bit tricky topic - let me know if you need help with setting one up.
- You can build and run the project with the
Run
button:
Usually Android developers are aware of the above dependencies and know how to check them in the projects config (or Android Studio screams about them), so apart from using the TrustedForm SDK there's nothing special about our Demo project and in most cases it should run basically "out of the box"