Android API

The NEON Android API is an easy-to-use interface for communicating with the NEON Location Service. The NEON Location Service, along with a NEON Tracking Unit, can provide location updates, indoors and out, to any other application installed on an Android phone.

The Android API is subdivided into sections that allow a user to focus on the functionality that is required for their application:

  • The Location API has all the basic functionality needed to connect to the NEON Location Service, subscribe to locations and events, login, and upgrade software and firmware.
  • The Settings API allows the user to programmatically change all settings required for NEON integration.
  • The Environment API allows the user to download buildings and floor plans created in our NEON Command Application. These buildings are used to locate and display users inside a building.
  • The Constraint API allows the user to add constraints to the NEON Location Service to improve location. This can be from a user checking-in at a location on a map, ranges to a custom ranging device, or GPS from an external source.
  • The Measurement API allows the user to develop an external plugin to integrate a custom signal or measurement device into the NEON Signal Mapper application.

For technical descriptions of the API functions, look at the documentation directly. For a tutorial that builds an application around the NEON Location Service, take a look at the Android API Tutorial.

The NEON API is hosted on our maven repository at https://www.myget.org/F/trxsystems/maven. It should be added to the repositories section of your project’s gradle build file. The package name is com.trxsystems.neon:android-api and should be added to the dependencies section of your module’s gradle build file.

Here is an example of the required entry in the build.gradle for your project:

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://www.myget.org/F/trxsystems/maven/"
        }
    }
}

Here is an example of the required entry in the build.gradle for your module:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'com.trxsystems.neon:android-api:4.0.0'
}