Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Eventbus | 24,286 | 5,364 | 64 | 3 months ago | 8 | December 08, 2021 | 147 | apache-2.0 | Java | |
Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality. | ||||||||||
Inlineactivityresult | 214 | 3 years ago | mit | Java | ||||||
Receive the activity result directly after the startActivityForResult with InlineActivityResult | ||||||||||
Rxbus | 82 | 3 years ago | 1 | apache-2.0 | Java | |||||
Android reactive event bus that simplifies communication between Presenters, Activities, Fragments, Threads, Services, etc. | ||||||||||
Realm Book Example | 82 | 5 years ago | 1 | other | Java | |||||
This is an example rewrite of AndroidHive's messy tutorial, accompanying the following article on Realm. | ||||||||||
Senecaoop345 Attic | 63 | 2 years ago | C++ | |||||||
This folder, attic, contains code fragments. Like most attics, this attic needs a good cleaning. Some fragments are from the usual places on the web, cplusplus.com, stackoverflow, etc. Some fragments are DIY code written in class. Some fragments are as-is as found on the web while others are heavily modified to make work or add functionality. Some fragments are useful, some are not. Most fragments work, some don't. Notable Useful Fragments ======================== fastforward.cpp - a summary of OOP345. funcptr.cpp - examples of the many ways of passing function names to other functions: direct call, c-style function pointer, c++-style function pointer, function object (functor), lambda, bind examples of intersting functions to pass function to: thread, async, packaged_task sp?.cpp - smart pointer resources mi-*.cpp - multiple inheritance resources, clone+diamond problem theading?01?.cpp - threading101?.cpp - basic threading, mutexes - threading201?.cpp - futires and promises - threading301?.cpp - async, packaged_task - threading401?.cpp - how things were done before async + packaged task thread-*.cpp - cool thread code, such as thread pools ll*.cpp - linked list code moveSimple.cpp - move semantics stl-calc-*.cpp - postfix calculator using stl stack, list, vector, deque containers vectorchar*.cpp - how to make a string class mased on std::vector<char> dp-composite*.cpp - composite (tree) design pattern code alarmsetjmp.cpp + setjmp*.cpp - use alarm and setjmp to do interesting things swap.cpp - swapping data in place (without using a temporary) using xor and add operators. asmlist.cpp - how to generate an in-line assembler listing of the code generated by the compiler popen.cpp - how to start up a pipe to a program and read the output from the program folder threading-concurrency_in_action - pdf and sample code from Concurancy in Action book | ||||||||||
Lifecycleevents | 21 | 5 years ago | apache-2.0 | Kotlin | ||||||
Android Interview Questions By Firoz | 20 | a year ago | ||||||||
Here is collection for all interview questions asked in different companies in India for an fresher to experienced android developer. | ||||||||||
Android Developers Guide | 5 | 4 years ago | mit | HTML | ||||||
Android官方文档(Android Developer Guide)翻译项目 | ||||||||||
Jitterbuffertest | 5 | 5 years ago | C++ | |||||||
C++ interview assignment from late 2012 | ||||||||||
Rxevent | 3 | 7 years ago | gpl-3.0 | Java | ||||||
A publish/subscribe EventBus base on RxJava simplify communication between Activity, Fragment, thread, etc. Least code. |
EventBus is a publish/subscribe event bus for Android and Java.
EventBus...
Define events:
public static class MessageEvent { /* Additional fields if needed */ }
Prepare subscribers: Declare and annotate your subscribing method, optionally specify a thread mode:
@Subscribe(threadMode = ThreadMode.MAIN)
public void onMessageEvent(MessageEvent event) {
// Do something
}
Register and unregister your subscriber. For example on Android, activities and fragments should usually register according to their life cycle:
@Override
public void onStart() {
super.onStart();
EventBus.getDefault().register(this);
}
@Override
public void onStop() {
super.onStop();
EventBus.getDefault().unregister(this);
}
Post events:
EventBus.getDefault().post(new MessageEvent());
Read the full getting started guide.
There are also some examples.
Note: we highly recommend the EventBus annotation processor with its subscriber index. This will avoid some reflection related problems seen in the wild.
Available on Maven Central.
Android projects:
implementation("org.greenrobot:eventbus:3.3.1")
Java projects:
implementation("org.greenrobot:eventbus-java:3.3.1")
<dependency>
<groupId>org.greenrobot</groupId>
<artifactId>eventbus-java</artifactId>
<version>3.3.1</version>
</dependency>
If your project uses R8 or ProGuard this library ships with embedded rules.
For more details please check the EventBus website. Here are some direct links you may find useful:
Copyright (C) 2012-2021 Markus Junginger, greenrobot (https://greenrobot.org)
EventBus binaries and source code can be used according to the Apache License, Version 2.0.
ObjectBox (GitHub) is a new superfast object-oriented database.
Essentials is a set of utility classes and hash functions for Android & Java projects.