What is EventBus Library and How Does it Work?

In this blog, we are going to discuss about the Eventbus library. What is EventBus: EventBus Is open Source android library that simplifies communication between Activities, Fragments, Threads, Services, with Less code, better quality.When we develop an android application we need to manage a lot of intercommunication between android components which some time’s become very Continue Reading »

Nearby API Post-Connection Phase

We have already discussed near pre-connection phase in our previous blog. Check this reference : http://blogs.innovationm.com/nearby-api-pre-connection-phase/ Now, in this blog, we will have a look at the post-connection phase. After the connection between advertiser and discoverer is made successfully, post-connection phase starts. In the post-connection phase, there is no distinction between advertiser and discoverer. Both can Continue Reading »

Spring Hibernate With EhCache

Ehcache is an open-source, standards-based cache for boosting performance, simplifying scalability and offloading your database. EhCache is used to improve performance by reducing the load on underlying resources.  It can also be used for RESTful server caching, application persistence, and distributed caching. In simple words, cache means a store of things that will be required Continue Reading »

Retrofit Library in Android

Retrofit is REST API Client for Java. It is developed by Square Inc. It uses OkHttp library for HTTP Request. It is a simple library that is used for network transaction. It is a very easy and fast library to retrieve and upload the data via Rest based web service. Adding Dependency in Build.gradle-

Continue Reading »

Nearby API pre-connection phase

  Nearby Connections API is one of the many APIs available in google play services. This framework was introduced in early 2015. Initially, it allowed only those devices to share data which connected to the same wifi network. After June 2017, in the version 11.0, it also made use of Wifi hotspots, Bluetooth and BLE Continue Reading »

Room Persistence Library

  Last year 2017 Google announced a more secure and robust architecture to allow smooth database access while harnessing the full power of SQLite called Room Library. The Room Persistence library helps your app to create a cache on your device. In this blog, we are going to discuss Room Library and its implementation. Persistence in Android? Continue Reading »

Hibernate Query Language

  In this tutorial will discuss about Hibernate Query Language. HQL is an object-oriented query language. Hibernate Query Language(HQL) is same as Structured Query language(SQL), except that in HQL we use entity class name instead of table name. HQL provides its own syntax and grammar Ex.   From Employee emp . Where Employee is an entity class which are Continue Reading »

Spring Security with OAuth2

  Spring Security provides comprehensive security services for J2EE – based enterprise software applications. It is powerful, flexible and pluggable. It is not Proxy server, firewall, OS level Security, Intrusion Detection System,  and JVM Security. OAuth is open authorization protocol, which allows accessing resources of the resource owner by enabling the client applications on HTTP Continue Reading »

Functional Interface and Lambda Expression

  Welcome to the tutorial of Functional Interface and Lambda expression. In this tutorial we will discuss fundamental concept of functional interface and lambda expression. Functional Interface : Functional Interface is just a interface with one abstract method, but it  can have any number of default and static method. Runnable and Comparable interface are the Continue Reading »

MongoDB Integration with Java

In this tutorial, we will discuss about how to integrate mongoDB with java client. 1. What is MongoDB ? MongoDB is a very popular NoSql open source database. It works on collection rather than table and document rather than row and column that provides, high performance, high availability, and easy scalability. Sample document :

Continue Reading »

Getting Started with React Router

Routing concept is very importance in almost every web application’s architecture, which could not be left out in the React. Power of routing enables us to make a full fleshed single page applications with React. We can make use of React-Router for Routing in React. Setup and Installation We need: Node.js  and npm. create  a new project. React Router Continue Reading »

Spring Data JPA

  Spring Data JPA is not a JPA provider but is a specification. It is a library / framework that adds an extra layer of abstraction on the top of our JPA provider. It simply “hides” the Java Persistence API (and the JPA provider) behind its repository abstraction. JPA is the sun specification for persisting Continue Reading »

React Component Lifecycle

All the react component goes through a lifecycle which enables you to perform a specific task at any specific time. In order to achieve that you can override the life cycle methods. Methods prefixed with will are called right before something occurs (events), and methods prefixed with did are called right after something occurs. Let us understand Continue Reading »

Design Pattern – Database Transaction Handling (in Android)

This blog is about database transaction handling and its design pattern in android. It also gives a brief knowledge on how to handle Exception. Here we have a main method which is responsible to get  database instance  -> start Database Transaction  ->  Mark Transaction Successful   ->  Commit or Rollback Transaction  ->  Close database. This main Continue Reading »

Job Scheduling with Spring Batch

 Spring Batch Spring Batch is a processing framework designed for robust and parallel execution of multiple job. It follows the standard batch architecture in which a job repository takes care of scheduling and interacting with the job.  Spring Batch Job Spring batch job reads input data, processes the input data, and writes the processed data Continue Reading »

Version Control of Android Studio Project via SVN

Apache Subversion (SVN) SVN stands for Apache Subversion, a software versioning and revision control system distributed as open source under the Apache License. In order to demonstrate the process of adding an Android Studio project into SVN,  let’s first create a new project in Android Studio and name it HelloWorldProject. The project structure looks like this Continue Reading »

Reducing Size of Bitmap

Reducing Size of Bitmap Introduction- Images come in all shapes and sizes. In many cases they are larger than required size for a typical application user interface. For example, the system Gallery application displays photos taken using your Android devices’s camera which are typically much higher resolution than the screen density of your device. So Continue Reading »

Fragment to Fragment Communication

Communication Between Fragments We can communicate from one Fragment to another Fragment and receive callback from calling Fragment to caller Fragment by using a standard method setTargetFragment() and getTargetFragment(). Scenario – We are in a Fragment and want to open a Dialog Fragment on top of Fragment. On Dialog Fragment, we do some task and Continue Reading »