Angular JS Directives in Short.

By | June 16, 2017

Here is a comprehensive list of Angular JS Directives. Directive Description ng-app It defines the root element of an application. ng-bind It binds the content of an html element to application data. ng-bind-html Itbinds the innerhtml of an html element to application data, and also removes dangerous code from the html string. ng-bind-template It specifies… Read More »

How to send Send form-urlencoded parameters in post request android volley?

By | May 8, 2017

We have to override the getBodyContentType() method in volley to enable “form-urlencoded parameters” in POST request using Volley. Here is how the code will look like. If you are not familiar with Volley, Checkout my post here on volley. It will give you a perfect picture on what Volley can do. Code – Method 1… Read More »

How to enable the default animation on a RecyclerView when an item is added or deleted?

By | May 29, 2017

You may be knowing that RecyclerView is part of the material design, so it will have the built in animations when you add an element or remove and element. In today’s article, I will show you how to how to do this in a simple way. RecyclerView will perform a relevant animation if any of… Read More »

Bottom Navigation Demo in Android

By | April 30, 2017

To get started with this, you need the latest version (version 25) of Android SDK & tools (including SDK tools, build-tools, platform-tools, support repository). Gradle Add the design support library First step is to add the design support library to your app-level build.gradle file. Example is as shown below: Layout Add the BottomNavigationView to your… Read More »

What are weak references? How it can be used to avoid memory leaks?

By | April 14, 2017

Weak reference objects, which do not prevent their referents from being made finalizable, finalized, and then reclaimed. Weak references are most often used to implement canonicalizing mappings. Suppose that the garbage collector determines at a certain point in time that an object is weakly reachable. At that time it will atomically clear all weak references… Read More »

Android Speech to Text Tutorial

By | April 22, 2017

Android comes with a built in feature for Speech to Text. This is really helpful when you want to provide navigation in your app through voice commands. When you say something in the app, your voice will be streamed to the server and the server will convert it to text and send back. You can… Read More »

What are the different Logging options available in Android?

By | May 28, 2017

Android uses a centralized logging system. However you can write your own custom log statements. Log Statements To write log statements, you use use the android.util.Log class with the following methods: Log.v() Log.d() Log.i() Log.w() Log.e() Log.wtf() They are sorted by relevance with Log.i() being the least important one. The first parameter of these methods… Read More »

How to automatically generate comments for your function in Android Studio?

By | May 27, 2017

This is a simple trick in Android Studio. First you have to write the skeleton of your function like this Now to generate the comments for this function just type “/**” on top of the function and hit “enter”. You will see the comments generated for you. Now your function will look like this Leave… Read More »

Simple Image Scaling Demo in Android

By | April 2, 2017

This article shows how you can do simple image scaling in Android. Here I have a simple class that Scales the image. The Utility class Layout The layout which shows the image for scaling. Set the above xml as layout for the Activity. Activity Please leave your comments at the end of the post.

Using Popup Window in Android

By | April 2, 2017

The popup windows is a floating container that appears on top of the current activity. Layout for PopUp Below is the layout for the popup window. Layout for Activity Create another layout for the activity activity_main.xml Implementation The activity which implements the popup.

Client-Server Programming in Android. Send Message to the Client and Back.

By | August 7, 2022

Hi all, Today I will show you how you can implement Client-Server architecture in an Android environment.   Watch Video Demo   Below is the demo of the app we are going to build.   Watch Video Tutorial   I wil be explaining the code in the below video tutorial. If you have any comments,… Read More »

Using Shelvesets in TFS

By | April 30, 2017

Using Shelvesets in TFS we can set aside pending changes in Visual Studio 2015. We can set aside a batch of pending changes from our current work space temporarily using the feature Shelvesets . We can later restore these changes into our work space or can into work space of another user. Read more from… Read More »

Built In Filters and Custom Filters in Angular JS

By | March 16, 2017

AngularJS provides filters to transform data: currency Format a number to a currency format. date Format a date to a specified format. filter Select a subset of items from an array. json Format an object to a JSON string. limitTo Limits an array/string, into a specified number of elements/characters. lowercase Format a string to lower… Read More »

Custom TimerView in iOS – Swift

By | March 16, 2017

Hello everyone, Here in this tutorial I will show you how you can create a Custom View for Timer without any layout in Swift. Custom Timer Class Our Custom timer class will look like this Here I am passing the superview in which timerview is going to be placed as the parameter. Then I am… Read More »

Android Testing Tools

By | February 18, 2017

Automated testing processes are now a common thing in every project. Lets see some of them MonkeyRunner You can checkout more from here Advantages Low Level tool Does not have to do coding to automate tests Written in Python It can run test cases on rela devices connected to a PC/Emulators. APIs available for controlling… Read More »

Core Image Tutorial in Swift

By | February 18, 2017

It allows developers to filter images in their apps. Advantages Core Image supplies 90+ filters. Powerful image filtering capabilities Core Image includes APIs for face detection Automatic image enhancements Custom effects through “chained” filters. You can get all kinds of effects, such as modifying the vibrance, hue, or exposure. It uses either the CPU or… Read More »

Find subscriber id, sim serial number, phone network type etc in Android

By | February 18, 2017

The android.telephony.TelephonyManager class provides information about the telephony services such as subscriber id, sim serial number, phone network type etc.You can also determine the phone state etc. Permission Before Starting, make sure you add the permission in the Android Manifest. Android Source Code Below code gets the information from the Android Telephony Manager and displays… Read More »

Using SmsManager to send SMS

By | February 18, 2017

There are two ways to send SMS in Android Using SmsManager Using Built in Intent 1. SmsManager The SmsManager manages SMS operations such as sending data to the given mobile device. You can create this object by calling the static method SmsManager.getDefault() as follows: Initialize Sending Message Once you have SmsManager object, you can use… Read More »

Check if the Device is Charging in Android and the Power Source.

By | February 3, 2017

Your application peformance should be upto the mark. But it should perform differently not on the front end , but on the back end when it the device is connected to a power source or charging. Charging could be of from USB and from wire cable. When your device is charging itself , it is… Read More »