Versions Compared

Key

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

...

- Put the Maven local or remote repository inside the project's build.gradle. Example with Maven local repository:[source,java]
.

Code Block
languagejava
titlebuild.gradle

...

buildscript {

...


	repositories {

...


		jcenter()

...


		mavenLocal()

...


	}

...


}

...


- Inside the dependencies of the application build.gradle file (your application and not the build.gradle in the root project), add the library :[source,java]
.

Code Block
languagejava
titlebuild.gradle

...

dependencies {

...


	compile ('com.greenspector.probe.android:greenspector-probe-android:[version]')

...


}

...


- In the Manifest:

To use Internet, put:[source,xml]
.

Code Block
titleAndroidManifest.xml

...

 <uses-permission android:name="android.permission.INTERNET"/>


----To write results in sdcard, put:[source,xml]
.

Code Block
titleAndroidManifest.xml

...

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

...


<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

...


[IMPORTANT]
===============================
Beginning in Android 6.0 (API level 23), some permissions are now considered *dangerous*.
The permissions *android.permission.READ_EXTERNAL_STORAGE* and *android.permission.WRITE_EXTERNAL_STORAGE* must be granted explicitly via ADB commands for the measures to work.

...