Author Archives: Kripa Shankar

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 »

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 »