NetworkUilt

General

Category
Free
Tag
Networking
License
MIT License
Min SDK
16 (Android 4.1 Jelly Bean)
Registered
May 21, 2018
Favorites
1
Link
https://github.com/jay006/NetworkUtil-lib
See also
NetRequest
Iris
Retrofit-DSL
IceNet
Rx.Network

Additional

Language
Java
Version
v0.2.0 (Nov 29, 2017)
Created
Nov 30, 2017
Updated
Feb 14, 2020
Owner
Shriom (jay006)
Contributor
Shriom (jay006)
1
Activity
Badge
Generate
Download
Source code
APK file

Blurb

NetworkUtil-lib

NetworkUilt is a fast and efficient open source network fetcher java class for Android which is use to make HTTP/HTTPS calls very easy. It accept URL as only parameter and return raw data in String.

1.Use to make API calls.

2.Able to fetch JSON data efficiently.

3.Easy to use with web crawling.

4.Able to make network call on slow internet connection.

5.Conditions of \n and \r or " " is taken care of efficiently.

How to add this to your project?

STEP 1. Add the JitPack repository to your build file (Project Level)

  allprojects {
  
    repositories {
    ...
    maven { url 'https://jitpack.io' }
   }
  }

STEP 2. Add the dependency (App Level)

dependencies {
        implementation 'com.github.jay006:NetworkUtil-lib:v0.2.0'
}

USAGE:

Is can be using in saperate thread to make networking calls, i.e other than Main thread (UI thread).

Simple exmaple on usage:-

public class Fetch extends AsyncTask<Void, Void, Void>{
 @Override
 public String doInBackground(String... args){
  String URL = args[0];
  String resultData = NetworkUtil.makeServiceCall(URL);
  return resultData;
  
 }
}

Its not that hard as it looks. You need to call new Fetch().execute(myUrl) and in 'doInBackground' NetworkUtil.makeServiceCall(myUrl) will fetch you data.