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

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...

Android app development for beginners 2: Your first hello world application

In this tutorial we'll: 1.Set up and develop Android project 2.Go through basic essentials to let you start with the development

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...

Calling a ParseCloud function from android parse.com

Here I am writing the way to call cloud method from the code. Below is the method in the parse cloud. Parse.Cloud.define("testing_method", function(request, response) { var textMsg = "Testing 1 2 3"; var jsonObject = { "answerM...

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 ...

Pagination in android recyclerview

 Step 1- Defined here  some necessary variable   boolean isLoading=false; -> this variable will use to show progressbar below to recyclerview in your xml file when you scroll your recyclerview list . int mPageSi...

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...

How to make Tabs ViewPager with the using Fragments in android

In the below example I have created a Tabs ViewPager by using three fragments. Before creating layout firstly I have added design libraries in the dependencies section of build.gradle file. Then I have created three fragments layout, in this I ha...

How to communication between an Activity and Fragments in android

In the below example I have created a commuication between an activity and fragments classes. In the below example user enters name in SendFragment part and click submit button then in second fragment on displayFragment show user name input resul...

Change the color of Switch

In android, switch is the toggle widget that has two states to select two options. User can simply click to toggle or drag back and forth to select the option. Here, I am changing the ON color of the SwitchCompat. SwitchCompat is the versio...

How to limit DEX memory usage

Sometimes we are getting errors of shortage of memory at the compile time. We get such type of error: Exception in thread "pool-1-thread-2" Exception in thread "pool-1-thread-3" Exception in thread "pool-1-thread-4" java.lang.OutOfMemo...

TextView to have Web links, email address and phone number actionable

There is a property in text view to have web links, email address and phone number to make them as hyper link and actionable. <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" androi...

How to create Fragment Communication in android

In the below example I am describing "how to communicate fragments"?, fragment is a part of Activity in android. In one Activity we can use multiple fragment easily and each fragment have it's own functinality. Without activity we c...

How to create draggable image in android

In the below example I have created draggable panel function. This will works like a notification bar up and down. Here first I have added slidinguppanel support library in build.gradle file. Then in next step i have added SlidingUpPanelLayout, B...

How to remove CardView item in the RecyclerView list

In the below example I have created a RecyclerView, In RecyclerView I have added CardView item. When you click on FloatingActionButton a dialog box will open on screen where user will fill name, address and gender and then finally click on ok but...

How to design chat app in android

In the below example I have created a simple chat app . Here first I have added ListView , TextView , EditText and Button in activity_main.xml layout. After then  I have created two new layout left.xml and right.xml , In both layout I have a...

How to Create stylish (animation) login page

 In the below Example, I have created a stylish login page. Here I have design first login activity_main.xml layout here I have added FrameLayout, LinearLayout, TextView, EditText and Button. Now In MainActivity I have used ViewCompat.animat...

How to Add Popup function in CardView

In the below example I have Created a Popup function, so when we will click on CardView it shows Popup on our screen and when we will click outside popup then automatically popup window will close.   For this First I have added I have added...

How to create notification in android.

1) To create notification UI content and action we make use of  NotificationCompat.Builder object and Builder object must include the following:- Small icon that would be shown when your notification will arrive at your device and it i...

How to Add Dialog box in RecyclerView

In The below example I have created a recyclerview app, in this app I have used CardView. First I have added I have added first RecyclerView , CardView and design support  library in  build.gradle file .Now I have created RecyclerView a...

Catching while showing images using ParseFile through parse.com

The problem that I encountered when showing images in ListView from Parse.com is catching because we get ParseFile from cloud.   So I first change ParseFile to byte[] and then use Glide library that allow byte[] also to load image. Gl...

How to add floating action button with RecyclerView xml layout

In the below xml layout first I have created Framelayout then I have added RecyclerView and FloatingActionButton within Framelayout. You can see below program it will clearly describe you to add floating action button with RecyclerView xml layout...

Count down timer that shows in HH:MM:SS format

If we need to show countdown till in some point of time in future then CountDown timer is the best solution CountDown Timer sets countdown till in some point of time in the future, with regular interval. CountDownTimer is the class that han...

How to use ArrayAdapter class in android

In the below example, first I have created ArrayAdapter class and then extend ListActivity. In next line I have store ListItems in String then I have setListAdapter. ”ArrayAdapter class can handle a list item as input, By using this class w...

How to create Swipeable View in android

 In the below example I have created View Pager (View pager slider). Here I have added ViewPager in activity_main.xml layout, after that I have created slide_page xml layout, in that I have added a textview and in next step I have created fo...

How to create RippleDrawable button in android

 In the below example I have created Ripple Drawable clickable button. Here first I have created RelativeLayout In Relative layout I have added a Button, after then I have created two xml layout in drawable folder first is one.xml layout in ...

Keep the Screen On

There are certain situations when we need to turn screen ON such as live map games, routing, movie, tv apps. Basically, to avoid battery draining android device fall asleep after some time, but to accomplish this task we have to keep screen ON...

How to Add Title, Subtitle and Image in RecyclerView

In the below example I have created a RecyclerView, in RecyclerView I have added three category (Image, Title and Subtitles). I have also added four diffrent item in RecyclerView. First I have added RecyclerView dependency to Grandle file. and in...

Multidex with Gradle

When our application and libraries references reaches their limits, then we get some errors that shows we reached the limit of built architecture. Like this trouble writing output: Too many field references: 131000; max is 65536. You may ...

How to show the web page within your application using webview in android.

If you want to show web pages without opening browser application in your android application then make the use of webview as I have done below:- 1) to make your application access the internet use the permission"<uses-permission andro...

Detecting camera hardware

If we don't specify we require camera using manifest declaration, so we can check it at runtime that the camera is available or not. To do this task, we have PackageManager class. PackageManager has hasSystemFeature() method to check it...
1 8 21
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: