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

Featured

How to get Image from URL using glide library

The below example code will helps you to get Image from URL by using glide library and to wait for image until it loaded.  For this in below example I have added glide library in  build.gradle file then I am using Glide with MainActivit...

How to implement ViewPager with tabs in android?

To switch easily from one page to another using slide either from left-to-right or right-to-left becomes easy using ViewPager. The below example is to make view pager with TabLayout, tabs may be used to display headings, we can also move easily f...

How to get GCM registration token in Android

GCM(Google Cloud Messaging) registration token is a kind of id given by the GCM connection server to user/client that allow user to receive messages. To get registration token first we have to generate a unique number, it can be created while con...

How to Mute/Unmute device sound programmatically in android?

In some of the cases in our application, we have to set our devices in Mute/Unmute mode. To get this functionality we have to add few lines of code. I have added two buttons one is for Mute and another one is for Unmute our device described below...

How to catch activities in foreground/background using ActivityLifecycleCallbacks?

To catch the states of every activity in our android application we have to implement ActivityLifecycleCallbacks. ActivityLifecycleCallbacks will have different override method as onActivityCreated, onActivityStarted, onActivityResumed, onActivit...

How to authenticate with Fingerprint in android applications ?

From android marshmallow api 23 android supports fingerprint authentication support. Fingerprint api support android version 6.0 or greater. Fingerprint authentication contains following process : 1. Check weather a user enabled keyguard or...

Linkify text in Android Textview

Linkify is very helpful to create links from TextView or Spannable. Linkify get Regular expression and work on Text with Regular expression.  For example, you have a random text which includes web URLs also and you want to use web URL a...

Behaviour of launchMode "singleTop" in Activity (manifest)

How launchmode parameter in activity behaves   <activity android:name=.FirstActivity android:launchMode=singleTop></activity>   Let us assume different activity as A ,B ,C ,D ,E   1   and...

How to use Butterknife in Android?

ButterKnife is library to initialize the views with Annotations. With the help of Butterknife you have no need to initialize view with findViewBtId(). here we start. 1. Create Project. 2. Open module level build.gradle file. 3. Add b...

How to declare dimension of activity and how to start launch bounds activity ?

Hi, Android 7 i.e nougat supports multi window mode to open more than one screens at a time With help of this flag one activity can be open adjacent to another activity. Require jdk : 1.8 or higher Require sdk : 24 nougat Require depe...

Android 7 to create resizable and minimum size activity

Hi, Android 7 i.e nougat supports multi window mode that means at the same time two or more screens can be open like to open email on right side and gallery on left side. So to create multi-window screen we have to use a flag in manifest named...

Features of Android Nougat api 7

Now Android API version 7 is ready to launch in the market with name Nougat.   Nougat has some features that are listed below : Performance - For Fast updates now just in time compiler comes with new updates, VR mode etc. Battery...

Most Popular Application Development Frameworks 2016

      "Developing mobile applications used to mean that you had to write native code, for each individual device or operating system that your client required. However, these past few years the term Hybrid App Deve...

How Interactive Worksheets Help Your Kids Learn Smartly & Funny Way

Being a parent you must be worried about your kids’ education and finding new ways to help them learn and grow! After all, your kids are your greatest assets for whom you do everything. To keep this in mind you have to find a better solutio...

How to convert image color to Gray Scale using OpenCV?

OpenCV library is useful to convert image background color to another RGB color. We basically read the image using BufferedImage then we read bytes data from that image and we create a new MAT by applying image height and width and then put th...

How to match template using openCV ?

Template matching with openCV basically works on matrix reading of searched image. following is the example of Template matching using openCV : xml file to show resulting image after image search : <?xml version="1.0" enco...

How to show openCV native camera in Android ?

In previous blog we added openCV android sdk and native libraries in our project so that we can use sdk. Here we will show camera in our Android app using openCV sdk. in your activity's xml file add this : <org.opencv.android.Ja...

How to add openCV sdk and native libs in your project?

OpenCV is an open source project that provides OpenCV android SDK to match one template against other. These are the following steps to add OpenCv in your project : 1. First of all download Android studio from this link - https://developer....

How to get android device macAddress, IMEI no and uniqueId

To grab MAC address first we have to enable device WIFI, after enabling it we can get the MAC address. public static String macAddress(final Context context){ WifiManager wifiManager = (WifiManager) context.getSystemService(Context....

How to read notification title, text and package name in android?

If you want to read your incoming notifications title, text and package name in your android application then below few lines of code will be helpful for you. To read incoming notification we have to add a BIND_NOTIFICATION_LISTENER_SERVICE in ou...

How to Insert, Select and Delete all table row data in SQLite database?

In the below example code I have clearly described how to insert,Select and delete all table row from the database. Here, first I have extended SQLiteOpenHelper class After this I have used onCreate method to create a database table. In next step...

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

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

Reduce APK Size

Hello Readers !!   Today I will explain to you how you can reduce the size of the APK file. We need to take care following points when we create a build so that APK size should be small.   Device Filter:- This is a ver...

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

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

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...
1 3 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: