Skip to main content

Posts

Showing posts from October, 2015

Android SnackBar Example

Android Snackbar:     you can Download the complete Android Studio Project here . Few Things About Android Snackbar: Snackbar is an Improved Toast message, where you can  make the user respond to an action with the actual message. A snackbar appear over all layout , in the bottom of the mobile screen.  Like a Toast message, you can only display one snackbar at a time. SnackBar can be dismissed by swiping it to the right. You can able to display Snackbar inside Any layout of your choice, So in this example we have two Layout CoOrdinatorLayout which is inside Parent Linear Layout. On clicking the First two  button ,Snackbar will be shown  inside  bottom of the CoOrdinator Layout ,  And Last button Will display snackbar in the bottom of parent Layout. You can Display Snackbar inside Fragment and Activity as well , but in case of Activity, your Activity must extend from AppcompatActivity. You can set a  Snackbar to display only message by doing

Simple Android Volley Example with Json

Android Volley Example:    Download Complete Android studio Project from here .    You can host Your own Json data(REST,SOAP)  online for free from here . Why Volley:           Usually   networks calls(GET, POST) are made   using Apache HTTP Client either inside AsynchTask or Thread. Even before making the Request, one have to write numerous lines of code to open connection to the Targeting HTTP. Which is a burden for programmers.         So What Volley does is, it removes this particular burden. By default, Every Volley request is Asynchronous, so there is no need to Create AsyncTask     for Volley Network Calls.         RequestQueue:   Volley allows you to make Multiple Network calls in parallel, you can also say to volley in which order the request call have to be made using RequestQueue ordering.              Volley also allows Image Caching.   About this Tutorial:               In this tutorial we are going to get the contact in