Building and running

We can now build and run the app on our target device-- an Android phone. Follow these steps. If you want more detail and explanation, please refer back to the relevant sections of Chapter 3, Building Your App:

  1. First, be sure to save the scene (File | Save Scenes) and project (File | Save Project).
  2. In Build Settings (File | Build Settings) make sure the scene is the only one listed in Scenes In Build (press Add Open Scenes).
  3. In Build Settings Platform, make sure Android is the target platform (select Android and press Switch Platform).
  4. Now go to Player Settings (press Player Settings in Build Settings, or main menu Edit | Project Settings | Player) and look at the Inspector on the right for the Settings for Android.

 

  1. Under Other Settings, the Package Name must be set to a unique identifier, in the format com.Company.ProductName such as com.PurpleFinch.BusinessCard.
  2. For Minimum API Level, select Android 5.1 Lollipop (API level 22 or whichever is the current minimum for ARToolkit).
  3. Once more save the project.

Now make sure your phone is connected via USB and unlocked. Then press Build And Run. As mentioned in Chapter 3, Building Your App, we recommend you make a folder named Build and save your executable build files there. We can name it BusinessCard.apk.

There you go! Whether you choose to use Vuforia or ARToolkit, whether you target Android or iOS, you can impress your business clients with an augmented business card!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset