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

Google sign in with google play service 9.0

With Google play services v9 we can easily sign in with google in our apps, now we have GoogleSignInOptions builder that is used to configure Google sign in api. GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions....

How to set arrow on custom seekbar ?

we can set arrow based seekbar using following trick like this : First of all you have to set a image of scale then below that image set a seekbar with progressDrawable transparent and then set arrow image as a thumb. <?xml version=&q...

Set Custom View to TabLayout android

This blog is about adding custom Layout to TabLayout.   Here we start. 1. Create Project.   2. Open Gradle file of the project.   3. Add design dependencies to the gradle. compile 'com.android.support:des...

Set help or show case view on screen

Showcase view or Help view is basically used to show some useful content on any screen when user comes first time there. This is the github library you can use to set showcase in easy way like this : add library in gradle file : compil...

How to crop an image in android

Step1: First we have to add jcenter() repository to Project build.gradle allprojects { repositories { jcenter() } } Step2: Now add cropping library in our app build.gradle and synchronize the application. compi...

Display a list of all installed application in an android device

The PackageManager class is used to get the information of application packages that are currently installed on android device. You can get an instance of PackageManager class using getPackageManager().   Below example will show you ho...

Staggered Grid Layout with RecyclerView android

This blog is about how to create StaggeredGridLayout with Recycler view in Android. Recyler View is advanced version of ListView/GridView. Here we start how to Create StaggeredGridLayout with  Recyler View. 1. Create Project. ...

Horizontal RecylerView Android

This blog is about how to create Horizontal Recycler view in Android. Recyler View is advanced version of ListView.  Here we start how to convert Recyler View scrolling to Horizontal scroll. 1. Create Project. 2. Create Activity. ...

Count Badge in Menu Android

This blog is about counter badge on icon of Menu . like counter of Notification. Here is code of this tutorial. 1. Create project. 2. Create text_circle.xml in res->drawable folder. 3. Write below code to text_circle.xml. <...

How to make Tab layout with using material design support library

In the below example I have created a Tab layout using  design support library. When user clicks on tab, tab color will change, mean it will identify that you have clicked on that   particular tab. Here, first I have added materi...

Get Android app version from Play Store link andorid

This blog is about get current version of Android app on Play Store android using Jsoup. There is no official API to get version number but we can get it by reading HTML.   Here we start. 1. Create Project. 2. Open Manifest file and...

Hands-up Notification Android

Hand-Up notification comes up with API level 21. Hands-up notification is open small floating window on top of the screen only when device is active. Hand-up notifications are High-priority notifications.Hands-up notification required to set ...

How to make Flip animation image in android?

 In the below example code, I have set the animation to an ImagView when you clicks on image, image will rotate 180 degrees from Y axis. Here first, I have added an ImageView within actvity_main.xml layout, after that I have created a flip.x...

ProgressBar in Notification Android

Sometime we need to download large file from server or some progress which takes time. For user experience we show progress bar so that user can check estimate time and progress completion. This blog is about how to set up Progress bar in No...

Integrate Splunk MINT in an android project

Splunk MINT is used to send crash report of your mobile application. After integrating Splunk MINT SDK in your application, you can use Splunk MINT Management Console to monitor your mobile apps.   Follow the simple steps to integrate...

Methods to monitor android EditText

If you have to perform certain tasks before, after and during the text changes in android EditText the following methods will help you to monitor your operations. Implementing the Textwatcher interface provides the callback methods listed below, ...

Accessing another apps by listing installed applicatoins in android

This tutorial is for getting the list of installed apps in your android devices. The information we reterive with the currently installed apps in a device using  PackageManager class. We will get the instance of this class by calling getPack...

Navigation Activites on Deep Linking andorid

This blog is about Navigation of application activities. When an Activity is opened with Deep Linking then pressing back button close application instead of working in normal backstack flow. If you are not familiar with Deep Linking then pleas...

How to add Header in RecyclerView without using any external library?

In the below example code I have described how to add Header in RecyclerView without using any external library. For that, Firstly, I have created a header.xml layout and here I have added a TextView. Now see programing In MyAdapter class I ha...

How to Update Android Notification, Expanded Notification and Big Notification?

This blog is about how to update android notification and how to use Expanded and Big notification.   For Big style Notification you can check my previous blog which is:- http://findnerd.com/account#url=/list/publish/Big-View-Notifi...

Big View Notification Android

This tutorial is about Big View of Notification. Big View notification introduced in Android 4.1. Big View Notification has advantage to set functionality from Notification like you  Alarm application and you can Dismiss/Snooze alarm ...

Repackaging android app for Blackberry devices and signing the BAR file

  To repackage android app for blackberry phones you need to convert the APK file to BAR file which is compatible with the blackberry phones. To convert APK file you can either use Blackberry plug-in tool or Blackberry command line tools...

How to use Chronometer in Android?

Below example code will helps you to create Chronometer. For this firstly, In activity_main.xml layout I have added buttons and Chronometer layout. Now See MainActivity, here I have used start(), stop(), SystemClock.elapsedRealtime()), setFormat(...

Clean cache of all applications below API 23 Android

This blog is for cleaning cache of all application using Reflection on below API leve 23 i.e Marshmallow. 1. Create Project. 2. Create package in root folder with name android.content.pm. 3. Create aidl file int this package with name IP...

Get Cache Size of Apps Android

This tutorial is about getting internal cache size for all applications. There is no such API is available in android because of Security reasons.   So we will get cache size of all apps with Reflection.   Here we start:- ...

How to get data from assets file in android?

In the below example I have described how to get data from assets folder. Firstly I have created txt.json file in assets folder. In txt.json file I have added JSON data. Now See In MainActivity code I have created loadJSONFromAsset() method, in t...

Getting RAM Details Android.

This Blog is about RAM detail that Total Ram size your Android Device and used Ram size in your Android Device. From API level 16 Android gives properties to get Ram information.   In this tutorial I will explain to get RAM size for...

How to test listview click event using TDD in android ?

We know that test driven development is basically for functional testing , in this blog we will test listview using instrumentation method runOnMainSync() that executes a call on application main ui thread. here is the layout file : <L...

How to integrate google analytics in Android Application

Are you interested in tracking your Android app activities? If yes, Google Analytics provides a service for which real time tracking of Activities, fragments, events, exceptions and crash reports can be done easily. Steps to integrate Google A...

TTS(Text to Speech) android

TTS define Text To speech. Android provides TextToSpeech functionality from API level 4.  TextToSpeech  is in package android.speech.tts.  Here is how to work with text to speech functionality in android. 1. Create...

Check whether Application is installed or not on an Android device

There are two ways to know that the particular application is installed in your android device or not. 1st way:- In first way we get the list of installed application and check whether the targeted package name (package of the application t...

Pagination in RecyclerView

PAGINATION IN RECYCLERVIEW Hello, Here is a simple pagination tutorial in recyclerview. Step 1 : -  Create a recycler view and its adapter, In my case i have created a custom adapter in order to show user's profile image.  ...

How to Use Deep Linking in Android?

In the below example code I have enabled deep linking. Let's consider, you have shared your app in social network like, Gmail, Facebook, Whatsapp etc. When users click on the link you shared then your app will open, if it's installed in h...

List and Detail of all installed application Android

There is multiple ways to get installed application information like PackageInfo and ApplicationInfo.  In this tutorial I will show both way to get All installed applications.    Step 1:-   get Package Manager In...

How to expand and collapse header/toolbar in android

1. Coordinator Layout: Coordinator layout is the super set of frame layout. Expanding and contracting of header/toolbar to gain more view for the main content. As per the property of frame layout it can have multiple child views but the additiona...

Pedometer

PEDOMETER   Hello All ,  As health concerns are growing up here comes a basic idea how to create a pedometer app, This blog will guide to create a pedometer and manipulate its setting to get the accuracy of foot steps, you...

TDD to test android activity

Test driven development is basically a procedure to achieve actual functionality or goal. This is also called in short TDD. This process contains following steps that are :       Write test cases     Run ...

Perform different operations using package name in android

1) If your requirement is to get app icon from package name then below few lines of code will be helpful for you. try { Drawable app_icon = getPackageManager().getApplicationIcon("PACKAGE_NAME"); my_imageView.setBackgrou...

Convert bytes to human readable form Android Java

Convert bytes data to human readable form. 1.  I initialized the byte with random number; long bytes = 123456; 2.  Initialize String[] of data types. String[] types = {"kb", "Mb", "GB", "TB", "PB", "EB"}; 3. initial...

Water Reflection to Image Android

This blog is about how to create water reflection image. 1. Create android Project. 2. Activity layout file is look like :- <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/...

FlexBox layout in android

 In the below example I have describes "how to use FlexBox layout". FlexboxLayout extends the ViewGroup like relative layout and linear layout. You can add different attributes to the flexlayout like flexDirection, flexWrap, justif...

How to get the debug or Signed SHA1 fingerprint for Android Application in Ubuntu

SHA-1 fingerprint is used for creating a digital certificate, either debug certificate and released certificate. Debug certificate is when application is in testing phase and released when ready to be in a live mode. Fingerprint is a hexadecimal ...

How to generate keyhash for Android App(Facebook integration)

If you need to integrate Facebook SDK in your android app you have to generate keyhash, to configure Facebook API console. Add this method to your utility class and call this method from onCreate() of any Activity. For digital data integrity and ...

How to get all accoutns registered in device ?

Sometimes it is required to get all the accounts registered in device like facebook , gmail, linkedin account as well as whatsapp account. Account Manager provides list of all centralized account of device. First of all we can have the inst...

How to share files without using internet?

Hello guys, This tutorial will help you to guide that "to share files without using an internet". Through this tutorial, we can share any type of files between android devices. I am explaining this step by step.   Step1- I...

Scan document like CS Scanner using OpenCV and NDK

In my last blog I have written about how to use Jhansi Karee's   Android Scanning library. This blog is about how you can use/modify library code according to your requirement.  I am assuming that you are already familiar...

How to auto-restart app after Crash/Force close in Android

In this tutorial, we will learn about how to handle exceptions manually in android using UncaughtExceptionHandler and how to restart app after exceptions. Some of the cases App gets crashed or situations like force close. Thread.setDefaultUncaugh...

Use of Lambda expression in java 8

The lambda expressions is introduced in java 8 and easy to use. Lamda expression automatically read the params type and return the same type value. Like we have an anonymous class to implement some listener in it like this : button.addTou...

Clear Application Cache Programatically.

Clear Cache Programatically Hello All,  This is a simple tutorial to clear cache of your application, Sometimes there is need in our application to store some of the files on device cache and we don have the choice to move them to SD c...

Uses of Java 8 predicates in android to filter data

Predicates basically used in ios to query over model class data but from java 8 its available in android or java this function returns true or false value based on condition like P: Y? {true, false} that predicates on. Example : We have a mode...
1 5 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: