How can we help?
Using the Android examples with Android Studio
Once you have downloaded the zip file with the libraries (Augumenta-AIP-SDK-android-gradle-v2.5.0.zip
) and received the license key, you might want to look into the examples from Augumenta-AIP-SDK-examples-gradle-v2.2.1.zip
.
Here is the step-by-step how to do it:
Step 1: Create new project in Android Studio
- Select a Project Template to be ‘No activity‘ then click
Next
- Use a Name that you want but make sure that the company domain is same the one used when you applied for your license. In our case, we use: com.augumenta.examples…
- Select a location for the directory (Save location) and click
Finish
Step 2: Import AIP libraries
- Navigate to File -> New -> New module and click on the card Import .JAR/.AAR package.
- Find the place where you unzip the
Augumenta-AIP-SDK-android-gradle-v2.5.0.zip
and select theagapi.aar
- Repeat the steps and add also
agapi-utils.aar
Step 3: Import the module source code
- Navigate to File -> New -> Import module and click on the source directory
- Find the place where you unzip the
Augumenta-AIP-SDK-examples-gradle-v2.2.1.zip
and select the module you want to import - Repeat the earlier steps to add the other modules
Step 4: Install the license for module
- Follow the instructions from: How to add Augumenta license key to Android module
- You don’t need to check the manifest entry, as it is already added for you
Step 5: Run the imported module in the device
- Run the imported module in the device (or press Shift-F10)
Step 6: (Optional) Remove the empty app module
- You can remove the app module from the Project Structure by going into File -> Project Structure
- Click on the Modules tab and select the app module
- Click on – to remove the module (or press delete)
- In the root folder, it is now possible to delete the folder app