How To Create A Simple Event Bus in Android

Written by akshay-rana-gujjar | Published 2020/10/18
Tech Story Tags: android-app-development | android-development | android | eventbus | android-apps | android-studio | android-tutorial | android-hacks

TLDR EventBus is the number 1 event library for android and java. You need very less or no setup to use EventBus in your existing project. To better understanding EventBus we will make an app that allows us to add items to the cart and show the total count of the items. EventBus uses the publisher and subscriber pattern for loose coupling which means the possibility of errors will be less. We add 3 items in the real world application, we should use a list of items or any other view to make a list.via the TL;DR App

no story

Written by akshay-rana-gujjar | Android and Web Developer
Published by HackerNoon on 2020/10/18