Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Yacy_search_server | 2,909 | 18 days ago | 202 | other | Java | |||||
Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance | ||||||||||
Mobileinfo | 568 | 2 years ago | 1 | apache-2.0 | Java | |||||
【Android】Hardware Information. For detailed network diagnosis, please refer to【HttpInfo】 | ||||||||||
Merlin | 548 | a year ago | 1 | May 14, 2014 | other | Java | ||||
Observes network connection status & gives callbacks | ||||||||||
Aion | 337 | 2 years ago | 30 | mit | Java | |||||
Aion Network - Java Implementation | ||||||||||
Emergent | 136 | 13 | 11 hours ago | 98 | August 12, 2022 | 19 | bsd-3-clause | Go | ||
This is the new version of the emergent neural network simulation software, written now in Go (golang) | ||||||||||
Retrospring | 132 | 6 days ago | 76 | agpl-3.0 | Ruby | |||||
Q/A based social network | ||||||||||
Drc Sim | 65 | 5 years ago | 23 | other | Python | |||||
Wii U Gamepad Simulator Backend | ||||||||||
Avain | 56 | a year ago | mit | Python | ||||||
A Modular Framework for the Automated Vulnerability Analysis in IP-based Networks | ||||||||||
Oksimple | 56 | 3 months ago | Kotlin | |||||||
OkSimple :powerful and simple okhttp network library | ||||||||||
Nprint | 50 | a year ago | 2 | apache-2.0 | C++ | |||||
nPrint provides a generalizable data representation for network packets that works directly with machine learning techniques |
Merlin aims to simplify network monitoring. Providing 3 registerable callbacks for network connectivity changes.
onConnect()
, onDisconnect()
and onBind(NetworkStatus networkStatus)
.
To start using Merlin, add these lines to your module's build.gradle
:
repositories {
jcenter()
}
dependencies {
implementation 'com.novoda:merlin:1.2.0'
}
Note: these steps should not be necessary as the Manifest Merger should be taking care of this for you!
If for some reason your app's manifest doesn't end up containing the required entries, and you encounter issues, you might need to manually add a few things to your AndroidManifest.xml
:
These permissions:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
This service:
<service
android:exported="false"
android:name="com.novoda.merlin.MerlinService" />
Create Merlin:
merlin = new Merlin.Builder().withConnectableCallbacks().build(context);
Bind and unbind the service in your activity:
@Override
protected void onResume() {
super.onResume();
merlin.bind();
}
@Override
protected void onPause() {
merlin.unbind();
super.onPause();
}
Register for callbacks:
merlin.registerConnectable(new Connectable() {
@Override
public void onConnect() {
// Do something you haz internet!
}
});
For further details you can check the wiki.
Version 1 of Merlin introduced several breaking changes in the implementation and the APIs, to account for the latest changes in Android N+. Please follow the instructions in the wiki to make the upgrade as painless as possible.
In version 1.1.8
some public API changes were made. According to our tests auto importing should be able to take care of these changes.
Starting in version 1.0.0, the RxJava support is no longer built into the library but it has been split out into a separate artifact. You'll need to add one of these two dependencies, depending on the version of RxJava you use:
// For RxJava 1.x
implementation 'com.novoda:merlin-rxjava:[version_number]'
// For RxJava 2.x
implementation 'com.novoda:merlin-rxjava2:[version_number]'
Here are a list of useful links:
support-merlin
when posting a new question