Creating a New App


Nsight Tegra, Visual Studio Edition creates new Android applications with the New Project wizard.

As an example of creating a new application, use the following steps: 

  1. Open the new project wizard via File > New > Project…
  2. Select Android from the left-side menu.
  3. Select Android Native Application from the list of project types.

  4. Set the Name: to your desired app name, e.g. my_app.
  5. In the next Dialog, Customize Android Manifest, do the following:
    1. Set the Package name as desired.
    2. Set the Min Target to Android 4.0.3.


  6. Click Finish.

Building Multiple-Architecture APKs

Nsight Tegra allows building APKs containing native libraries for several architectures. This requires you to manually setup projects to utilize new Nsight Tegra platforms, by following these steps:

  1. In the Build > Configuration Manager..., add the required platforms (for example, ARM-Android-NVIDIA and x86-Android-NVIDIA) to both the solution and all Nsight Tegra projects in it.
  2. Change the General > Target Architecture property to Multiple in the APK project, Tegra-Android platform. Press Apply.

    The General > Platforms to Package property will become visible after you press Apply. Assign it the list of all the platforms from step 1, without the –Android-NVIDIA postfix using ; as a separator. For example, set the property to ARM;x86 if you added ARM-Android-NVIDIA and x86-Android-NVIDIA in step 1.

  3. Building the Tegra-Android platform will now trigger building each of the specific platforms, and then pack the results into the APK. Building the specific platforms (such as ARM-Android-NVIDIA) will create APKs for only one architecture.

Note: APKs built for several architectures cannot be launched or debugged. In this case, switch to a specific platform (such as ARM-Android-NVIDIA) for debugging.

Note: If an APK for multiple architectures is built before single-platform APKs, Visual Studio will report the latter as being up-to-date. Rebuild the APK project or touch any file in it, in order to make it build.

 


NVIDIA® GameWorks™ Documentation Rev. 1.0.211026 ©2014-2021. NVIDIA Corporation and affiliates. All Rights Reserved.