Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourGreen
titleUp To Date

Table of Contents

Android Probe API

Installation in your project libraries or in a Maven repository

Install Download the aar lib provided by GREENSPECTOR in your project or in an available Maven library from the GREENSPECTOR Modules page on the Web Interface and install it:

  • either in the libs folder of your Android project;
  • or in a local or remote Maven repository.

Example for a local Maven repository:

Code Block
languagebash
mvn install:install-file
-Dfile=greenspector-probe-android-[version].aar
-DgroupId=com.greenspector.probe.android
-DartifactId=greenspector-probe-android
-Dversion=[version]
-Dpackaging=aar

Android Studio integration

Put the Maven local or remote repository inside the project's build.gradle. Example with Maven local repository:

...

Code Block
languagejava
titlebuild.gradle
dependencies {
	compile ('com.greenspector.probe.android:greenspector-probe-android:[version]')
}

Android Application

To use Internet, put:

Code Block
titleAndroidManifest.xml
 <uses-permission android:name="android.permission.INTERNET"/>

...