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

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

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

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...
1 2 4 14
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: