Category Archives: ANDROID

Starting with Material Design in Android – Volume 1

By | September 19, 2015

1. To create apps with material design: Review the material design specification. Apply the material theme to your app. Create your layouts following material design guidelines. Specify the elevation of your views to cast shadows. Use system widgets for lists and cards. Customize the animations in your app. 2. Apply the Material Theme To apply… Read More »

Show Download Progress in NotificationBar in Android with Notification Event Listeners

By | August 30, 2015

Below Sample code shows you how to download images from a url with progress in the notification bar. “NLService” Class is the actual Notification Listener class that can hear events in your notification. But before everything you need to be sure that, you have enabled notification access for your app. Make sure you add the… Read More »

NSNotificationCenter Example in Swift

By | July 15, 2015

Here is a simple demo on how to use “NSNotificationCenter” in swift. NSNotificationCenter is particularly useful when there are multiple class or struct instances that need to take action based on something that happens elsewhere in your application. To Register the notification… we will call Now to trigger the notification… The “notificationKey” should be unique… Read More »

Sync Adapter in Android – A Simple Example…

By | July 6, 2015

Hello all, In Today’s article we will be discussing about the SyncAdapters in Android. SyncAdapter is just a simple plugin like structure for syncing your server and Device. Check out this post about Account authenticator before proceeding. Why do we use SyncAdapter instead of Using Alarm Manger to Sync? Automated execution     Sync can be requested… Read More »

What are Generics and Why should we use Generics?

By | July 2, 2015

The Java Generics programming is introduced in J2SE 5 to deal with type-safe objects. Advantage of Java Generics There are mainly 3 advantages of generics. They are as follows: 1) Type-safety : We can hold only a single type of objects in generics. It doesn’t allow to store other objects. 2) Type casting is not… Read More »

ActionBars in Android

By | February 7, 2016

1. How to start with ActionBar in Android? With Android 3.0 Google eliminated the need of hardware menu button which is replaced by Action Bars. Here is a quick example on how to use ActionBars. First create a new project and name it ActionBarExample. Now create a folder named “menu” in res folder and create… Read More »

How to connect Localhost in your MAC or Windows to your Android Device OR Android Emulator ?

By | December 7, 2014

The name “localhost” is just a loopback to your own computer. 1. ACCESSING LOCALHOST ON ANDROID DEVICE. To access it on your Android Device, you need to find the computer’s IP address. The most general way of finding this info, which works on both Mac and Linux, is to go into the Terminal and type… Read More »

What are static variables? Why it is used? What is it’s use? – A Common Interview Question.

By | November 7, 2014

The static keyword is used in java mainly for memory management. We may apply static keyword with variables, methods, blocks and nested class. The static keyword belongs to the class than instance of the class. The static can be: variable (also known as class variable) method (also known as class method) block nested class Static… Read More »

Nexus 6 Came…

By | October 16, 2014

Specifications GENERAL 2G Network GSM 850 / 900 / 1800 / 1900 – all models   CDMA 800 / 1900 – XT1103 US model 3G Network HSDPA 800 / 850 / 1700 / 1900 / 2100 / 900 – XT1100 Global model   HSDPA 850 / 900 / 1700 / 1900 / 2100 – XT1103… Read More »

How to change title and Subtitle text color and size of ActionBar in Android?

By | July 22, 2018

Here is a simple example that shows how you can change title and subtitle textcolor and its size in Android Method 1 Changing the styles [For support Library] Go to Values/styles.xml copy this code to change the textcolor and actionbar background color. Note : For applying theme if you are not using the Support Library… Read More »

Android In App Purchased Demo V3.

By | December 4, 2014

Hi all, This demo shows how to do in app purchase for managed products in Android using Version 3 in-app Billing API. Please Go through this before trying out this Demo http://developer.android.com/google/play/billing/index.html These are the important steps in to remember for doing in app purchase. 1. You have to download the Google In App Billing… Read More »

Yota Phone – The Android Smartphone From Russia With Two Screens

By | January 5, 2014

Let’s start with the underlying hardware. Compared to some of the flagship and high-end Android devices launched in 2013, the Yota Phone is decidedly mid-range. The Dual-Core 1.7 GHz Krait CPU has the speed and capability to run Android comfortably, but the handset doesn’t stretch the specs in the current market. It’s nice to see… Read More »

App Translation Service Now Available to All Developers

By | December 18, 2013

To help developers reach users in other languages, Google launched the App Translation Service, which allows developers to purchase professional app translations through the Google Play Developer Console. This is part of a toolbox of localization features you can (and should!) take advantage of as you distribute your app around the world through Google Play.… Read More »

Intel ready to turn Android into Once Windows were…

By | November 24, 2013

Yes The chip maker is now ready for making android scale to even bigger screen that is dominated by the Windows platform.. Intel is reportedly thinking beyond Microsoft when it comes to a full-fledged ‘client’ operating system, and the best bet today for it is Google’s Android. The chipmaker’s general manager, Kirk Skaugen said that… Read More »

How to work in ActionBar support Library.

By | January 28, 2016

Hi all Today’s post is all about working with ActionBar support libraries from Google. These libraries support from Android 2.1 (API 7). For working with these libraries we have to follow some instructins. Please follow these steps exactly for setting up a Actionbar support library. 1. Start the Android SDK Manager. In the SDK Manager… Read More »

How to Create a new theme for ActionBar in Android.

By | October 12, 2013

In this post I will be telling you about how to change the default theme of ActionBar with our own custom One. Here I will be changing the background color, textColor and alpha of default ActionBar. Let’s see how it is done. By Checking out the styles.xml you will find that by default it looks… Read More »