Skip to main content

Posts

Retrofit Simple Example || Bind Data in Recycler View with full Source code | Android Studio

What is Retrofit? Retrofit is REST client for Android as well as JAVA by Square Retrofit easily retrieve and  upload JSON by using REST based web service. You can also configure a converter which is used for the data serialization. Generally for JSON we can use GSON or you can also add your own or custom converter to process other protocols or XML. In most case Retrofit uses the OKHTTP library for HTTP Request. For using Retrofit basically we need three classes Model Class Interface RetrofitBuilder class Let's start the code : First of all add following permission to your AndroidManifest.xml file. <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> Add following dependencies to your build.gradle file. compile ...

Simple View Pager using Fragment in Android Studio | Slide Navigation

View Pager In such case you have seen the slide in application while install it first time which will guide you how to use the particular application. Here is the small example which can be useful to you as a start up application. You just have to replace my Fragment Buttons to your image that's it. activity_main.xml < ? xml version = "1.0" encoding = "utf-8" ? > < RelativeLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:tools = "http://schemas.android.com/tools" xmlns:app = "http://schemas.android.com/apk/res-auto" android: id = "@+id/rl_pager" android:layout_width = "match_parent" android:layout_height = "match_parent" android:paddingBottom = "@dimen/activity_vertical_margin" android:paddingLeft = "@dimen/activity_horizontal_margin" android:paddingRigh...

API Level in Android

Android Version Released API Level Name Build Version Code Android 7.1 December 2016 25 Nougat Android.OS.BuildVersionCodes.NMr1 Android 7.0 August 2016 24 Nougat Android.OS.BuildVersionCodes.N Android 6.0 August 2015 23 Marshmallow Android.OS.BuildVersionCodes.M Android 5.1 March 2015 22 Lollipop Android.OS.BuildVersionCodes.LollipopMr1 Android 5.0 November 2014 21 Lollipop Android.OS.BuildVersionCodes.Lollipop Android 4.4W June 2014 20 Kitkat Watch Android.OS.Bui...

Android Basic Details

Let's Understand about Android Android is an open source or you can say that it is Linux based Operation System specially for Mobile device. Generally android was developed by OHA (Open Handset Alliance) and now it's led by Google and other companies. In this blog i will teach you from basic to advance concept of Android Programming. Android programming is based on JAVA programming Language so that if you have basic clear concept of JAVA programming language than you can learn Android Programming with Fun. Android offers a unified approach to application development for mobile devices which means developers need only develop for Android, and their applications should be able to run on different devices powered by Android. The first beta version of the Android Software Development Kit (SDK) was released by Google in 2007 where as the first commercial version, Android 1.0, was released in September 2008. On June 27, 2012, at the Google I/O conference, Goo...