How to use vuforiaSDK to develop the first AR demo application

1.If you are using or planning to use the Android Studio IDE, here are some notes about how to import and build the Vuforia samples:

First install the environment: JDK, NDK, AndroidSDK, AndroidStudio IDE

  • Read our Getting Started Guide for instructions on setting up the Java SDK, Android SDK and NDK:
  • Make sure you have installed the latest version available of Android Studio from:
  • Download VuforiaSDK for Android: (it's useless for now) https://developer.vuforia.com/downloads/sdk
  • Use the Android SDK Manager (from within Android Studio) to get the latest Android SDK and Platform tools
  • Launch Android Studio
  • Download sample programs https://developer.vuforia.com/downloads/samples
  • Select  File -> Import Project ... to import the sample program
  • Select "Create Project from Existing Source" (选择已经存在的AS project) and select the  sample directory (or any other Vuforia sample) to import the sample project
  • Set the NDK path in the project settings
  • Click Apply
  • Compile the project
  • Build the native code using ndk-build (as explained in our Getting Started guide)
  • Run the app on your device

 

2. Apply for a key

If you do not apply for the project key, an error will be reported

https://developer.vuforia.com/targetmanager/licenseManager/licenseListing

After the application is completed, click the APP NAME to see the application key

 

3. Configure the key for the project

The way to add the key is
Vuforia.setInitParameters(mActivity, mVuforiaFlags, " ") in the SampleApplicationSession class; fill in the key in the space

 

Here is the official introduction: https://developer.vuforia.com/library/articles/Solution/How-To-add-a-License-Key-to-your-Vuforia-App

 

 

4. Download the sample PDF of the samples and run the functions inside to implement some AR demos

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326747733&siteId=291194637