Skip to content

Synteraction-Lab/HeadsUpGlass

Repository files navigation

HeadsUpGlass

Android app framework for smart glasses (a clone of private repo NIPGlass)

  • A server to communicate with clients
  • Support RESTful APIs, Web Sockets or BLE to communicate with clients/devices/sensors/actuators
  • Initially this was built for the Vuzix Blade smart glasses. Later modified to support any smart glasses running on Android (tested with Android 5.1 and 6)
  • Depending on the display resolution, adjust your (Android) Activities
  • If you have any questions or found any bugs, feel free to create a issue

Related Publications

Documentation

Contact person

Requirements

  1. AndroidStudio (or any IDE which support Android)
  2. Android SDK (AndroidStudio will directly download this for you)

How to run?

  1. Build the project first (Make Tool)
  2. Run the app
  3. If you get error saying that credential file missing, add an empty json file (i.e. credential.json with content {}) to res/raw/

Change app name

  • Open app/build.gradle file and change the value of applicationId (e.g. From 'com.hci.nip.glass' to ''com.hci.nip.<APP_NAME>')
  • Open values/strings.xml and change the value of app_name (e.g. From 'HeadsUpGlass' to '<APP_NAME>')

Adding speech-to-text Google API

- Create a directory called "raw" inside "res" directory
- Create a file "credential.json" inside it (i.e. "res/raw/credential.json")
- Copy the content from Google speech-to-text API credentials to the file (or add "{}" if you do not need it)

Installing 3rd party APK files (not recommended)

  • Not all APKs are supported by Vuzix Blade compared to Epson BT-300
  • For Epson, just copy the APK file to the smart glasses and open it via file manager to install
  • For any Android device connected to a computer (with Android SDK) in Debug mode
    • Go to the platform-tools in Android SDK (cd C:\Users\<USER>\AppData\Local\Android\Sdk\platform-tools>)
    • Install using adb (adb install -r apk_file_name.apk)

Setup for Vuzix Blade

  1. Open "AVD Manager" under the "Tools" menu and choose to "Create Virtual Device."
  2. Choose the "Import Hardware Profiles" and select the 'vuzix-blade_v3.xml' file in 'profile' directory of this project
  3. Search for Vuzix and see if the new Device "Vuzix Blade" is added under the Phone Tab.
  4. Close the "AVD Manager" (you may have to "Cancel" the setup during the process since it does not have virtual emulator) and restart the IDE.
  5. Open/Import the project and open the "activity_main.xml" under 'res/layout' which shows the main layout of the project (i.e. MainActivity layout)
  6. In the "Design" tab select "Vuzix Blade" as the profile as follows: Web Page

References

Releases

No releases published

Packages

No packages published

Languages