Category Archives: ANDROID

Sync Adapter in Android – A Simple Example…

By | July 4, 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, 2015

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 | October 9, 2014

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 | September 2, 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 | November 9, 2013

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 »

How to handle configuration change in an activity using Fragments in android?

By | October 6, 2013

Here is a simple example in which we will save or retain the state of the progress using fragments. Note : We have handle a configuration by another way – by ignoring the change i.e using this property in the activity tag android:configChanges=”” By using this android ignores the configuration change and will never try… Read More »

Using Meta-data in Android Manifest and accessing it.

By | October 3, 2013

Sometimes you have the need to set up some app-wide configuration information in an Android app or need to create a class that can be used in multiple projects with a generic way of setting configuration values. This is particularly useful for things like API keys that will probably be different across apps but should… Read More »

How to write a custom content provider in android? with a sample application using our own custom content provider.

By | September 22, 2013

Hello all we all know what are content providers right? Those who are unaware of content providers please visit this link http://developer.android.com/guide/topics/providers/content-providers.html In a breif content Providers are Content providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data security. Content providers are the standard interface… Read More »

Samsung Galaxy Note 3 in India for Rs.49990

By | September 20, 2013

Here are Galaxy note 3 specs. General 2G Network GSM 850 / 900 / 1800 / 1900 3G Network HSDPA 850 / 900 / 1900 / 2100 4G Network LTE SIM Micro-SIM Announced 2013, September Status Coming soon. Exp. release 2013, September Body Dimensions 151.2 x 79.2 x 8.3 mm (5.95 x 3.12 x 0.33… Read More »

Android JellyBean new features

By | September 15, 2013

WI-Fi Direct 1080p video recording for stock Android devices Improved error correction on the keyboard You can directly access the apps from the lock screen Upgraded copy and paste functionality Support for the WebP image format Hardware acceleration of the universal Interface Soft buttons from Android 3.x are now available for use on phones Widgets… Read More »