Code Monkey home page Code Monkey logo

scandycoreandroidexample's Introduction

ScandyCoreAndroidExample

The ScandyCoreAndroidExample shows how you can use the magic that is Scandy Core in an Android Studio Project.

This sample uses ScandyCore to download a mesh and present it the viewer.

Setup

Step 1: Install Android Studio

  • Install Android Studio
    • if you're on Mac and have brew:

      ```bash
      brew cask install android-studio
      ```
      
  • Open Android Studio

Step 2: Android SDK

Make sure your Android Studio has all the necesary Android SDK dependencies installed.

* = Optional dependency

In Android Studio go to Tools -> Android -> SDK Manager

From SDK Platforms tab

  • Android 5.0*
  • Android 5.1*
  • Android 6.0*
  • Android 7.0
  • Android 7.1.1

From SDK Tools tab

  • Android SDK Build-Tools
  • CMake*
  • LLDB
  • Android SDK Platform-Tools #.#.# (versions change)
  • Android SDK Tools #.#.# (versions change)
  • Android Support Library, rev #.#.# (versions change)
  • NDK*
  • Support Repository
    • ConstraintLayout for Android
    • Solver for ConstraintLayout
    • Android Support Repository
    • Google Repository

Step 3: Add ScandyCoreAndroid as a dependency

Largely pulled this how from Android Studio docs

  • Open AndroidFragmentDemo

  • Go to: File -> New -> New Module

  • Select Import .JAR/.AAR Package, then click Next

  • Set:

    • File name: Use the ... and navigate to where you downloaded ScandyCoreAndroid.aar and select it.
    • Subproject name: scandycoreandroid
  • Open settings.gradle and make sure it looks like this:

    include ':app', ':scandycoreandroid'
  • Open app/build.gradle

    • Make sure it has this in it towards the bottom:

      ```gradle
      dependencies {
          // All your other dependencies up here...
          compile project(":scandycoreandroid")
      }
      ```
      
    • ScandyCoreAndroid currently only supports armeabi-v7a achitecture. So make sure defaultConfig has this in it too:

      ```gradle
      defaultConfig {
          // All the other defaultConfig stuff...
          ndk {
                abiFilters "armeabi-v7a"
              }
      }
      ```
      
  • Sync Project with Gradle Files

Step 4: Add your license

Update the contents of app/src/main/assets/scandycore_license.json with your license JSON.

Building, Running, and Installing

  • Click the big green arrow!

Or from the command line (from this dir):

./gradlew assembleDebug
# assuming the above command was successful
adb install -r ./app/build/outputs/apk/app-debug.apk

scandycoreandroidexample's People

Contributors

hcwiley avatar

Stargazers

Luis Angel Ibañez Barbosa avatar  avatar

Watchers

Kaben Nanlohy avatar Eric Streeper avatar Randall avatar James Cloos avatar  avatar Bess L. Walker avatar Daniel Andrews avatar Charles Carriere avatar John LaGrone avatar  avatar Rafael M Mudafort avatar Mark avatar Jonathan Walters avatar  avatar Scandy bot avatar

scandycoreandroidexample's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.