Skip to main content

Posts

Showing posts from January, 2014

Introduction and Example of Eventbus in Android.

EventBus is a library of Greenbot . This is very simple for all users how to implement and its basic use. Here I will also share examples for better understanding. What is EventBus? EventBus is subscribed/publish event bus to communication between components with limited lines of code, in short, its bus for events transfers the data between one activity(class) to another to reflect the changes based on our needs. That makes the data exchange between components like Activity, Fragment, Services, and any kind of backgrounds threads pretty easy. EventBus can handle the threading for us: events can be posted in threads different from the posting thread. Common use can be dealing with UI changes. In Android, UI changes must be done in the Main(UI) thread. In other words, networking or more time-consuming task cannot be handled in the Main thread, for that we must use AsyncTask or Handler to make it more smooth. Now we have one more options use EventBus to change the UI po

Interesting Android Story

As far as time passes most of people looking for buy new Smart Phones and if I say current trends then I must have to say that more than 90% person having Android Device as Smart Phone. Because of its easy to operate and understand the new functionality. In Market there are lots of Smart Phone available and most of them having Android OS. So let we see what is android history till now from Older version to Current Version (Kitkat). Do you how Google choose Android Codename? I notice this so I would like to share my thoughts with you guys, Its simple answer here. They go through alphabetical order. You can see its version name. Its start from C, D, E to K...  Now next name must be start with "L" CupCake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwich, Jelly Bean, Kitkat,