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...
If you do not completed simple example for how to call soap service from android then please look at my Part - 1 : Calling Web Service from Android After successfully understand the basic info from Part - 1, we moved to another advance example with database connectivity. Our android application connected with database, return value and display in our Android device. Here, I am using Microsoft SQL Server Database connectivity, you can use your preferred database. Before start the our implementation we first download the required library files for our use. 1. SQL Connectivity jar file for Webservice : http://www.4shared.com/file/IxoPooiE/sqljdbc.html 2. Ksoap Library file for Android : http://www.4shared.com/file/uOhx5aoj/ksoap2-android-assembly-24-jar.html Dynamic Web Project First we create webservice project. In that project we are connecting SQL database and write connection between them to retrieve the books data. Once its completed then move to Andro...