Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to create Grid View with in View pager

In the below example I have created a GridView with in Viewpager. Here in activity_main.xml layout , I have added ToolBar, ImageView , TextView, TabLayout, Viewpager. In second step I have created three fragments xml layouts. In fragment_three.xm...

Image Upload using Retrofit

We are assuming you are already familiar with Retrofit. If not then first go to this. We have used multipart request for uploading image on server using Retrofit. Following are the simple and easy steps for image uploading using Retrofit:- ...

How to use SmartLock for Passwords in Android

SmartLock for passwords saves your favorites apps and websites accounts authentication to your google account for future use for fast Login. With SmartLock for passwords you save authentication in Android app may be available on Chrome on Syst...

How to implement Urban Airship api in android to send gcm notifications ?

Urban Airship api provides you better way to implement push notifications and also provide you facility to send messages on production without sending it to live users so you can even test in production phase. This api supports gcm and amazon ...

Use StackView in Android

StackView is used to display views in StackView. StackView is added from API level 11.    Steps to implement StackView 1. add StackView in layout . <StackView android:id="@+id/stackView" android:la...

How to use EventBus in Android

EventBus is third party library which is best for communication with Activities,Fragment,Thread etc.  It simplifies the communication between components.  It is fast and less code use.   First of all add dependencies to gradl...

Hot to use action script to call ANE ?

This post is helpful to generate action script to call adobe native extension files. Here we are using FDT IDE used to create Action script for ANE. 1. Download FDT from http://fdt.powerflasher.com/docs/Installing_and_Running_FDT#Standalone_In...

Face Detection Android

From Google Play Services 7.8 Face Detection include in Mobile Vision API.  It helps to Detect and track faces from Live Camera or Video.   1. add google gms service  dependencies to gradle file. compile 'com.google.andr...

Android app development for beginners 3: Building a simple Simple User-Interface

In this tutorial you'll learn: 1. How to interact with a simple User-Interface 2. LinearLayout and some basic attributes of the basic UI elements.

Dynamic DataBinding In Android

This Blog simply illustrate how to use dynamic data binding in android Tired of writing same code again and again for finding views and setting data into it ? here is a simple solution which will now reduce the developer's effort for do...

How to use CollapsingToolbar with RecyclerView

In the below example I have created a Collapsing toolbar. When you scoll your recycler items then your header image will hide. Here In actvity_main.xml I have first created CoordinatorLayout as root element, In CoordinatorLayout I have added AppB...

How to generate native jar to build ANE ?

To make a build of ANE i.e Adobe native extension first you have to download FlashRuntimeExtension.jar that comes along with Adobe AIR sdk. you can download from here : http://www.adobe.com/devnet/air/air-sdk-download.html   We k...

How to compress video before uploading it to server ?

We know uploading a video on server is a time consuming task but by using third party libraries we can compress video file faster. There are many libraries available but this one is good, you don't have to add any ndk with this lib : FF...

Get correct path of file stored in device

Sometimes we faces some problem in getting path of selected files, like till kitkat version we have three types of document storage that are ExternalStorageProvider DownloadsProvider MediaProvider but in above versions we have ...

Manage image rotation programmatically

Hi we know that we have lots of devices available in Android market with different-2 resolutions and functionalities like we have some issue with samsung and lg devices while capturing images from camera, we basically gets the wrong orientation o...

Tweet from Android application using Fabric

Fabric is Twitter's  mobile application development platform. For more about Fabric and install on Android Studio Please refer below link:-  https://get.fabric.io/android After Install Fabric. Login using Twitter account and...

How to go next Activity click On CardView Item in android

In the below example I have created a RecyclerView, In RecyclerView I have added cardView item, so when you click on cardview item it will open next activity. In below code, first I have added RecyclerView and CardView library , In second step...

Play Youtube Video in Fragment Using YouTubePlayerFragment

This tutorial explain how we can Play YouTube video within Fragment.   1. Create simple Fragment class extending Fragment. 2. Implement YouTubePlayer.OnInitializedListener to Fragment and override its methods. 3. Create FrameLayout...

How to save Data items in spinner

In the below  code I have created a spinner, when you add your name or text in edit text box and press Add Button your text data will be save on Spinner. Here first I have added a EditText, Button and Spinner with in activity_main.xml layout...

How to remove ListView Item dynamically using animation function in android?

In the below example I have created a ListView , when user touch ListView row item then that particular row item will be remove dynamically. Here, first I have added Listview in activity_main.xml layout. In next step I have created row.xml layout...

How to add swipe gestures in ListView item

In the below example , I have  added swipe gestures on ListView. When you swipe particular ListItem in ListView then swipe gestures will perform. Here first I have added ListView in actvity_main.xml layout. In second step I have created...

How can use Bitmap in android

  In the below exampl e I have added a image with the help of Bitmap. Bitmap is eventually created and displayed on the screen. By using simply bitmap a pixels of rectangle, each pixel can be set to a given color  but exactly what co...

How to create muliple fragment image display in common Frame

  In the below example I have created a multiple fragment images use in common Frame . In first step, First I have created a fragment_common.xml layout , here I have added four ImageView. After then I have created four new xml layout -...

How to make ListView fragment in android

In the below example code I have created a ListView fragment app. In first step, first I have created list_fragment.xml layout here I have added a ListView and TextView. In Step second, I have added a fragment in actvity_main.xml layout and then ...

How to create Frame animation in android

 In the below example code. I have created Frame animation in android. Here I have created a Textview in activity_main.xml layout. After then I have created a new framanim.xml layout in drawable folder, In framanim.xml layout I have added fo...

How to make CustomDialog Fragment in android

In the below example code I have created a CustomDialog Fragment. Here, first I have created custom_dialog.xml layout , On this xml layout I have added EditText and  Button. In next step, in activity_main.xml layout I have added a Button and...

How to create fragment In android

In the below example I have created a simple fragment app code. Here, first I have created two new fragment xml layouts and neamed them fragmentone and fragmenttwo then in this I have added TextView and backgraund image. Now In activity_main.xml ...

How to create set wallpaper app in android

In the below example I have created set wallpaper app. Here I have added two button and ImageView in activity_main.xml layout. In MainActivity I have used setOnClickListener method , displayWallpaper() and Toast function, and I have also used Bit...

Android support Library 23.2 features

Here are some features of Android Support library 23.2   1. Support vector drawable (support-vector-drawable). Help to replace multiple bitmap images to single vector graphic xml file.  While vector drawable only support in lol...

How to make ServiceLifeCycle in android

In the below example code I have created android Service program. In activity_main.xml layout, first I have created a LinearLayout then in LinearLayout added two Button. Now See in coding part Here I have created a new MyService class and then My...

How to make Snackbar in android

In the below example function I have created Snackbar in android. When you click on button a message show at the bottom of the device(mobile) screen. Snackbars appear above all other elements on screen and only one can be displayed at a time and ...

How to make simulate animation in android

In the below example I have created simulate animation in android. Here I have added first TextView and ImageView in activity_main.xml layout ,In MainActivity I have used Runnable Thread. On this animation image will be rotate like watch. You can...

How to make Runnable Thread in android

  In the below code I have created Runnable Thread program in android. Here first I have added TextView in activity_main.xml layout. In MainActivity I have used handler class then I have created a new Runnable interface , And I have also ...

How to make ListView animation in android

In the below example I have created ListView animation in android. Here, first I have created ListView and Button in activity_main.xml layout and also added animation layout with in ListView. Then in Second step I have created list_anim layout wi...

How to create Custom Notification in android

  In the below example code I have created Custom Notification in android. Here first I have added ImageView and TextView in activity_main.xml layout. Then I have used NotificationManager class and NotificationService in MainActivity. You...

How to make Custom Switch in android

In the below example I have created Customizing Switch button. Here I have added a Switch in activity_main.xml layout. In second step I have created backgraund.xml layout in drawable folder, here I have design switch backgraund shape. In third st...

Implicit intent in android with example

Intent: Subclass : android.content.Intent class Intent is basically a way of communication between the various components such as activities, broadcast receivers , etc. We use it with startActivity() method to start a...

How to use Custom Exception in android

Custom Exception is user-defined exception. It is used to customize the exception according to the user requirement. Here In step one we have defined own exception . In step second Using the custome defined exception extends "Exception"...

How to use AsyncTask in android?

In the below example I have clearly described how to use  AsyncTask. First of all you should know what is AsyncTask ?   AsyncTask is an abstract class provided by android which helps us to use the UI thread properly. AsyncTask class...

Object Security parse.com android

For an object, we can specify the access control of the object means which users are allowed to read the object and which users are allowed to write. To do this, each object has an access control list. Parse provide ParseACL class to handle al...

How to fetch data in Spinner from api code

In the blelow code example I have clearly describe "how to fetch data from api server side"? for this first I have created activity_signup.xml layout here I have added TextView, ImageView, ScrollView, EditText, Spinner and Button. Now S...

How to create Custom Popup in android

In the below example code I have created a custom popup menu function. Here first I have added a Button in actvity_main.xml layout, Then in next step I have created a new popup.xml layout in menu folder, here I have added popup id and title, Now ...

How to make Expanding/Collapsing Toolbar

In the below example I have created Expanding toolbar in android. Here first I have created CoordinatorLayout in activity_main.xml layout then I have added RecyclerView, CollapsingToolbarLayout and Toolbar with in CoordinatorLayout, In MainActivi...

How to make selected item spinner function in android.

In the below example I have created a Selected Item from spinner in android. Here I have added first aTextView and Spinner in activity_main.xml layout, after then you can see in MainActivity I have used String class and created a ArrayAdapter. I ...

How to make Custom ViewPager in android

In the below example I have created custom ViewPager in android. Here first I have added TextView and ViewPager in activity_main.xml and In MainActivity I have used MyPagerAdapter class and extends with the PagerAdapter class , In resource i have...

Flash in custom camera android

I am writing the code that we use to implement the flash in custom camera. First, we need Camera.Parameters object that we get from Camersa's getParameters() method. Then by using Camera.Parameters's setFlashMode() method we can spe...

How to make custom Spinner in android

In the below example I have created Custom View spinner. Here first I have created a row.xml layout , In row.xml I have added a TextView and Button. Then I have created drop.xml layout in this I have added two TextView with in LinearLayout, Then ...

Forgot Password through parse.com

To reset the password, Parse provide us RequestPasswordResetCallback to requesting a password to reset for an existing user. I implement it using anonymous inner class. So then override the done() method where we can do whatever we want after ...

How to remove left margin of Android Toolbar?

The problem that I find when I used toolbar was the default left margin of the toolbar. Basically its left inset, and it is caused by Toolbar's contentInsetStart. left inset of the Toolbar is by default 16dp so we see such margin on the...

How can use Encapsulation in android

Encapsulation is a process of wrapping code and data together into a single unit. Encapsulationis used to bind method and variables(data). Below is my sample code to demonstrate Encapsulation in java, in this first I have created food class and f...
1 5 15
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: