amitshekhariitbhu /Fast-Android-Networking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
★ 5,936⑂ 977👁 223⑃ 46● 571▤ 10
-1
日增长
5,936
stars
977
forks
223
watchers
46
prs
571
issues
10
releases
README
Fast Android Networking Library
About Fast Android Networking Library
Fast Android Networking Library is a powerful library for doing any type of networking in Android applications which is made on top of OkHttp Networking Layer.
Fast Android Networking Library takes care of each and everything. So you don't have to do anything, just make request and listen for the response.
Why use Fast Android Networking ?
Recent removal of HttpClient in Android Marshmallow(Android M) made other networking libraries obsolete.
No other single library does each and everything like making request, downloading any type of file, uploading file, loading
image from network in ImageView, etc. There are some libraries but they are outdated.
No other library provides simple interface for doing all types of things in networking like setting priority, cancelling, etc.
As it uses Okio , No more GC overhead in android applications.
Okio is made to handle GC overhead while allocating memory.
Okio does some clever things to save CPU and memory.
It uses OkHttp , more importantly it supports HTTP/2.
About me
Hi, I am Amit Shekhar, Founder @ Outcome School • IIT 2010-14 • I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.
Follow Amit Shekhar
- X/Twitter
- LinkedIn
- GitHub
Follow Outcome School
- YouTube
- X/Twitter
- LinkedIn
- GitHub
I teach at Outcome School
- AI and Machine Learning
- Android
Join Outcome School and get a high-paying tech job: Outcome School
Outcome School Blog - High-quality content to learn Android concepts.
RxJava2 Support, check here.
Find this project useful ? :heart:
Support it by clicking the :star: button on the upper right of this page. :v:
For full details, visit the documentation on our web site :
Requirements
Fast Android Networking Library can be included in any Android application.
Fast Android Networking Library supports Android 2.3 (Gingerbread) and later.
Using Fast Android Networking Library in your application
Add this in your settings.gradle:
groovy
maven { url 'https://jitpack.io' }
If you are using settings.gradle.kts, add the following:
kotlin
maven { setUrl("https://jitpack.io") }
Add this in your build.gradle
groovy
implementation 'com.github.amitshekhariitbhu.Fast-Android-Networking:android-networking:1.0.4'
If you are using build.gradle.kts, add the following:
kotlin
implementation("com.github.amitshekhariitbhu.Fast-Android-Networking:android-networking:1.0.4")
Do not forget to add internet permission in manifest if already not present
xml
Then initialize it in onCreate() Method of application class :
java
AndroidNetworking.initialize(getApplicationContext());
Initializing it with some customization , as it uses OkHttp asTop issues
#307problem in adding library in gradle17 comments · 2018-06-23#430Issue while uploading Image12 comments · 2019-06-18#491Uploading file Not Working when file name contains Arabic numbers or characters10 comments · 2020-03-25#230Https Authentication Error10 comments · 2018-02-09#251Respone of GET-Request gets too long9 comments · 2018-03-14#541Larger video files downloading failed with error7 comments · 2020-11-26#361com.androidnetworking.error.ANError7 comments · 2018-10-04#498Throttling the server6 comments · 2020-04-12