Skip to content

Latest commit

 

History

History
executable file
·
43 lines (33 loc) · 1.12 KB

README.md

File metadata and controls

executable file
·
43 lines (33 loc) · 1.12 KB

DEPRECATED

android-nethelper

NetHelper Android Library

Installation

Android-NetHelper is build using Gradle.

Include the following in your proyect's build.gradle and Android-NetHelper will be downloaded automatically from Maven Central repository.

repositories {
    mavenCentral()
}

dependencies {
    compile 'com.sopinet:android-nethelper:1.0.0'
}

Alternatively you can include Android-NetHelper as a sub-module. You just would have to add the Android-NetHelper folder as a sub-module of your proyect.

Using it

Include in manifiest:

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

Use it:

SimpleContent sc = new SimpleContent(this, "YOUR_PROJECT_OR_KEY_NAME", 0);
try {
    result = sc.getUrlContent(URL_STRING, DATA_STRING);
} catch (SimpleContent.ApiException e) {
    e.printStackTrace();
}