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

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

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

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

Bar code scanner using Zxing library

There are too many libraries available to read qr code like Zbar and zxing library. Here we are showing how to use Zxing lib to scan qr code : First of all add dependency in app gradle file :   compile 'me.dm7.barcodescanner:zxing:...

How to read or sync only newly added smses ?

Basically we sync all the smses everytime when user do login in our app but this is time consuming task to do all the time so it would be better and effective if we sync only new smses after last sync. so basically for the first time we have...

How to read or sync only newly added contact ?

Basically we sync all the contact everytime when user do login in our app but this is time consuming task to do all the time so it would be better and effective if we sync only new contact after last sync. so basically for the first time we ha...

Scan document like CS Scanner

This blog is about sample application for Scanning documents like CamScanner.   Jhansi Karee has published library and demo project like CamScanner develop with OpenCv and NDK.  if you want only scan image and getting result t...

How to get crash report using Splunk Mint in Android App

Features of Splunk Mint:- 1) Monitoring slow transactions(track process) from start to finish. 2) Track user activity and events 3) Generate exception logs that occured in app. 4) Debug messages based on platform. 5) Examining errors by part...

Binding data with the layout

Typically, to bind data with the layout i.e with the UI fields we access the view elements in the activity using findViewById() method and then set the values to the views. This sometimes becomes quite cumbersome when there are large no. of view...

How to handle the click event in android RecyclerView

Listview has the callbacks for single click and long click, but the new concept RecyclerView haven't such things like setOnItemClickListener and setOnItemLongClickListener. RecyclerView.OnItemTouchListener is the key of working with Sing...

Installing Blackberry plug-in for Android Studio

With Blackberry plug-in you can package the android apps for blackberry devices i.e can convert .apk applications files to .bar files which are compatible with the blackberry phones. Also you can debug the applications using ADB proxy manager to...

Create tap on image animation like facebook

In the below example I have created a animation ImageView. When user click the image , then image will appear on full screen, after this when user tab again on image it will be Zoomout like a facebook image tab.   Here In activity_main.xml ...

Saving objects into SharedPreferences

To Save Object values into SharedPreferences, you can use GSON library.   To save objects follow these steps:   Add Gson library dependency in your Gradle (App Level): dependencies { compile 'com.google.code....

Circular ImageView

Use the following Java class to create a custom  circular ImageView   public class CircleImageView extends ImageView { private static final ScaleType SCALE_TYPE = ScaleType.CENTER_CROP; private static final Bitmap....

3D and 2D rotation of a view

Rotating a view in a 2D plane   To rotate a view, we'll create a animation object from a xml file. First, create a anim folder in /res directory. Then right-click on the /res directory then navigate to new -> Animation resourc...

How to make Grid View animation in android

By using below code I have implemented GridView animation in android. When you click on any image On Grid View, Image will zoom like popup. In below Adapter class I have used Animator class and I have created a zoomImageFromThumb method for zoomi...

Restricting a View to parentbottom when keyboard appears.

Hello all readers. In this blog,I am going to tell you how to restrict a particular view (Relative or Linear) to be always at parent bottom of your activity even when the keyboards appears.   Lets us first look at the xml, activity_mai...

Basics of LocalBroadcastManager

If you want to send broadcasts within your application, LocalBroadcastManager is a more suitable option than sending global broadcast as: 1. The broadcasts sent by  LocalBroadCastmanager  can only be recieved inside the application s...

How to get longitude and latitude from address in Google map?

In the below example blog I have Implemented a Google map to get lat and long from address, In Google map I have added search address functionality. When user input address(place) name in an EditText and on clicking button, the application draws ...

Media Player Android Basics

A newbie in Android development comes across Media player usage in his/her project. So in this blog, I am here to tell you the basic of media player. One can use android inbuilt media player or can customize media player according to the nee...

How to add marker with Infowindow in google map?

In the below example code I have described to add a  marker with Infowindow. Here I have used array list for adding marker items, then I have created plotMarkers method, in this method, it will addMarker by passing MarkerOptions as a paramet...

Upload Multiple APK with same package name.

Google Play has a feature to publish multiple apk with the same package name and different device configuration. For multiple apk's each apk has different version code and signed with the same certificate. This feature is useful while your...

Upload files to server using Volley Library as a HTTP multipart request

We have to extend Request class of Volley library to upload files to server. The steps to include this class is as follows:   Make changes to build.gradle file (Application level) Add the following codes inside android{.....} are...

Testing Cordova In App Purchases on Android and iOS

In this post, you will learn how to test your cordova application with using cordova InAppPurchase. You can test the purchasing with both android and iOS platforms. You need to have android and iOS devices to test it.   Testing on Andr...

Getting tweets using latest Twitter Rest API's

Hello, Everyone. In this blog, I am going to tell you how to use twitter fabric to get tweets in your application. But before going ahead, I am assuming that you have successfully installed fabric in your Android studio and if not, please read...

Capturing signature

To capture a signature, a custom view is created. This view works like a signature pad and you can get the signature drawn over the view by calling getImage() method. The image is retrieved in bitmap format and can be further processed like stor...

Installing twitter fabric to your android studio

Follow the steps to install twitter fabric   Open Android studio   Click File--->Settings.--->Plugins   In Search box,search ''fabric for android studio''   C...

Set custom font to TextView from XML android.

In Android development if we want to set custom font to any Button or TextView then we need to do this programmatically.   There is some tricks to set fonts from xml i.e custom Views.  There are steps to do that. 1. Create c...

How to use predicates in android or java 8 ?

Do you have lots of data of an employee and you want to filter it without using database query then you can use predicates that also provides you queries on beans or model class. Basically predicates comes from predicate function that returns ...

Distributing Android application to Specific Screens

In this post, you will learn how to distribute your android application to specific devices. You can choose the screens for that you want to distribute your application like only for tablets or only for mobile phones. You can publish two versi...

How to reduce APK size android

This blog is about reducing apk size with little tricks.   1. Use Proguard. :- Proguard main feature are Obfuscation and shrinking. Obfuscation is prevent from reverse engineering. Shrinking eliminates unused code and shrink code and r...

Calling application methods from WebView in android

Sometimes it is required to show useful information to the user in android App and in that case,WebView is very useful.But to access WebView,we need to develop a two-way connection between application and WebView. Here I will show you the best...

How to make Full Screen Navigation Drawer layout in android?

In the below example code I have created Full-screen Navigation Drawer layout with the help of FullDrawerLayout class.   Step(1)-activity_main.xml -Here I have added package name with FullDrawerLayout class name   <?xml v...

How to blur background image using BitMap?

 In the below example code I have created blur background image function. In activity_main.xml layout I have added a Button and ImageView. Now see programming area, here I have used Bitmap class. When a user clicks on button background im...

How to Add Items in Spinner By using SQLite DataBase

In the below example code I have created and example, to add item in Spinner By using SQLite Database. here In activity_main.xml layout I have added EditText, Button and Spinner. Now See programming area, here I have Created a DataBaseHelper Clas...

How to make Custom Spinner using material design

In the below example code I have created a Custom Spinner. Here first, I have added spinner library in build.gradle file. After that, I have added Spinner layout in activity_main.xml layout. In MainActivity I have added items name in String. Y...

How to make Tab Custom Layout?

In the below example code, I have created a Tab Custom Layout. In Tab Layout I have added Text with icon. Here first I have created two custom tab layouts Then I have created a method setupTabIcons() and inflate Custom layouts for tabOne and tabT...

Adding Card View Alternatively Within RecyclerView

In the below example code I have Created a RecyclerView. In RecyclerView I have  added CardView Item Alternatively like Chat app . First Item is on left, second is on Right. In Adapter class  I have used boolean type, variables(chang...

How to make Horizontal RecyclerView in android?

In the below example I have created a Horizontal RecyclerView. Here first I have added RecyclerView dependency to Grandle file. In second step I have added a RecyclerView and Set RecyclerView  gravity (center_horizontal). Now see In Main...

How to add icon with text in tab layout

In the below code example I have created a Tab layout, here I have created two methods, first is add text value and second in declare icons.You can see below example code it clearly describes How to add icon with text in tab layout.   ...

How to debug Android app wireless

There is some functionality which we cannot test on Android Emulator and Genymotion So we use Android actual device. But we have to attach device always when we need debug app. There is very clean and useful Android Studio Plugin which help...
1 2 4 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: