Beginner

Android Navigation Drawer example

As you know lot of android applications introduced a sliding panel menu to navigate between major modules of the application. Previously this kind of UI was done using some third party libraries where a list view and some swiping gestures used to achieve this. But now android  introduced sliding panel menu by introducing a newer […]

Android Navigation Drawer example Read More »

Android Dagger2 Example Using Retrofit

Here in this tutorial i will explain you what the dependency injection is and why do we need it? I will also let you know why do we use it and what happens when we don’t use it?We will also learn about how we inject dependency in our android project using dagger2 . What is

Android Dagger2 Example Using Retrofit Read More »

Android JobScheduler Example

Introduction When working with Android, there will be occasions where you want to run a task at a later point in time or under certain conditions, such as when a device is plugged into a power source or connected to a Wi-Fi network. Google has provided a new component known as the JobScheduler API to handle this

Android JobScheduler Example Read More »

Save key-value data(SharedPreferences)

There are many ways of storing data in android, One of the simplest way is SharedPrefrences If you have a relatively small collection of key-values to save, you should use the SharedPrefrences APIs, Using SharedPrefrences You can stores:   String, Integer, Float, Long, Double and a String Set.  download the full project from  Github. Save data to shared preferences

Save key-value data(SharedPreferences) Read More »

Android ViewPager Example To Create Sliding Screens

ViewPager Android ViewPager widget is found in the support library and it allows the user to swipe left or right to see an entirely new screen. Today we’re implementing a ViewPager by using Fragment and FragmentPagerAdapter. Get GITHUB code from Here. Creating New Project 1.In Android Studio, go to File ⇒ New Project and fill all the details required to

Android ViewPager Example To Create Sliding Screens Read More »

Android Retrofit Example

Retrofit Retrofit is a REST Client for Android and Java developed by Square. It makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based webservice. In Retrofit you configure which converter is used for the data serialization. Typically for JSON you use GSon, but you can add custom

Android Retrofit Example Read More »

Android Working With Tabs

Tabs Tabs make it easy to explore and switch between different views. TabLayout TabLayout provides a horizontal layout to display tabs. ViewPager Integration If you’re using a ViewPager together with this layout, you can call setupWithViewPager(ViewPager) to link the two together. This layout will be automatically populated from the PagerAdapter’s page titles. Get GITHUB code from Here. Creating New Project

Android Working With Tabs Read More »

Android ListFragment Example

ListFragment A fragment that displays a list of items by binding to a data source such as an array or Cursor, and exposes event handlers when the user selects an item. The basic implementation of list fragment is for creating list of items in fragments. Get GITHUB code from Here.   Let’s have a look

Android ListFragment Example Read More »

Android Fragment Example

Fragment A fragment is an independent Android component which can be used by an activity. A fragment encapsulates functionality so that it is easier to reuse within activities and layouts. A fragment runs in the context of an activity, but has its own life cycle and typically its own user interface. Android devices exists in a variety

Android Fragment Example Read More »

Android CheckedTextView Example

Checked TextView CheckedTextView is an extension of normal TextView that has a checkbox along with some text. It is mainly used in a ListView where we want to show which item is selected or not. Checkmark attribute is used to provide a graphic or a drawable to CheckedTextView. Download GITHUB code from Here.   Creating New Project 1.

Android CheckedTextView Example Read More »