Status |
---|
colour | Green |
---|
title | Up To Date |
---|
|
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 |
---|
|
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 |
---|
language | java |
---|
title | build.gradle |
---|
|
dependencies {
compile ('com.greenspector.probe.android:greenspector-probe-android:[version]')
} |
Android Application
To use Internet, put:
Code Block |
---|
|
<uses-permission android:name="android.permission.INTERNET"/> |
...