Rx.Network alternatives and similar packages
Based on the "Network" category.
Alternatively, view Rx.Network alternatives based on common mentions on social networks and blogs.
-
okhttp
Square’s meticulous HTTP client for the JVM, Android, and GraalVM. -
android-async-http
An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries. -
AndroidAsync
Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads. -
async-http-client
Asynchronous Http and WebSocket Client library for Java -
AndroidNetworking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀 -
Android Volley
Official Android HTTP library that makes networking for easier and faster. -
robospice
Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules. -
unirest-java
Unirest in Java: Simplified, lightweight HTTP client library. -
android-lite-http
LiteHttp is a simple, intelligent and flexible HTTP framework for Android. With LiteHttp you can make HTTP request with only one line of code! It could convert a java model to the parameter and rander the response JSON as a java model intelligently. -
node-android
Run Node.js on Android by rewrite Node.js in Java -
OptimusHTTP
:satellite: [Android Library] Simplified async networking in android -
networking
An android asynchronous http client built on top of HttpURLConnection. -
NetworkConnection
No description, website, or topics provided. -
Minimized API Service Library
Minimized API library which is used call the server request in andorid. -
Packetzoom
SDK for optimizing HTTP requests and free analytics service for networking.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Rx.Network or a related project?
README
Rx.Network
Listen for Android's CONNECTIVITY_CHANGE
broadcasts.
Use
Add the ACCESS_NEWORK_STATE
permission to AndroidManifest.xml
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Observing
This library exposes three different observables. They all monitor network connectivity the same way, but they provided varying levels of specificity about the state of the network.
Boolean
Use this observable when all you're interested in is knowing whether the network is connected or not.
ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
RxNetwork.connectivityChanges(this, connectivityManager)
.subscribe(new Action1<Boolean>()
{
@Override
public void call(Boolean connected)
{
// [...]
}
}
NetworkInfo.State
If you want just a little more information about the state of the network, but don't want to be weighed down by the minutia of things, then use this observable. Read NetworkInfo.State for more information about what you'll get back.
ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
RxNetwork.stateChanges(this, connectivityManager)
.subscribe(new Action1<NetworkInfo.State>()
{
@Override
public void call(NetworkInfo.State state)
{
// [...]
}
}
NetworkInfo.DetailedState
Here's the big daddy. This observable will tell you the "fine-grained" state of the network. Read NetworkInfo.DetailedState for more information about what you'll get back.
ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
RxNetwork.connectivityChanges(this, connectivityManager)
.subscribe(new Action1<NetworkInfo.DetailedState>()
{
@Override
public void call(NetworkInfo.DetailedState detailedState)
{
// [...]
}
}
Binaries
Add the JitPack repository to your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
And then add this library to your project:
dependencies {
compile 'io.andref:Rx.Network:1.0.1'
}
License
Copyright 2016 Michael De Soto
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*Note that all licence references and agreements mentioned in the Rx.Network README section above
are relevant to that project's source code only.