How to work in ActionBar support Library.

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.

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 »

A 4.8 inch iPhone may be on the way

Every iPhone user may be envious on seeing a bigger screen Android Phone. But don’t worry Apple is said to be working on an iPhone with a 4.8-inch screen, a 20% increase in screen size from the iPhone 5S, iPhone 5C and iPhone 5. Jeffries analyst Peter Misek has issued a research note to investors… Read More »

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

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.

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.

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

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

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 »

Creating a Clock Widget in Android with Custom Font.

Hi all if you have been a regular visitor of this website you have seen that I have shown you how to create a simple widget, adding controls to it, adding event handlers in the views etc… Do check this website for more tutorials on widgets. You can find other tutorials by following this LINK.… Read More »

Creating Dynamic table rows and colums in JQuery and removing it one by one.

Hi all… Apart from Android, I am now going to post something in jquery. In this post I will be showing how to create a dynamic table in jquery and adding data to it using objects and also deleting each row with a remove button in the corresponding row. This is how it is done.… Read More »

Faster Loading images in GridViews or ListViews in Android using Menory Caching, Complete implemenation with sample code.

Hi all This example shows you how to load large images in the gridview without any lag or without outofmemory error. This sample application uses the LruCache to hold the images. A cache that holds strong references to a limited number of values. Each time a value is accessed, it is moved to the head… Read More »

What is a Memory Heap Size in android? and how can use Bitmap Efficiently?

Memory Heap Size Android is a full multitasking system so it’s possible to run multiple programs at the same time and obviously each one can’t use all of your device memory. For this reason there is a hard limit on your Android application’s heap size: if your application needs to allocate more memory and you… Read More »

FlipCard animation using Fragments in Android.

Hello all I am back with fragments again. I know you have seen a lot of posts on fragments and fragment animation. This one will be another useful post for you. This post helps you to show a FlipCard animation using Fragments. Let us see how can we do this. At first I will show… Read More »

Process lifecycle in Android and Different types of processes.

The Android system tries to maintain an application process for as long as possible, but eventually needs to remove old processes to reclaim memory for new or more important processes. To determine which processes to keep and which to kill, the system places each process into an “importance hierarchy” based on the components running in… Read More »

How to write multilingual Android apps?

To build multilingual Android apps you need to collect the texts into resource files and translate them. Once you provide the translation, Android OS will choose the resources that match user’s locale. If your application is available in several languages, Android will select the language that the device uses. In this tutorial, we’ll cover: Application… Read More »

What are the main differences between a service and an Intent Service and when you should use it?

Service is a base class of service implementation. Service class is run in the application’s main thread which may reduce the application performance. Thus, IntentService, which is a direct subclass of Service is borned to make things easier. The IntentService is used to perform a certain task in the background. Once done, the instance of… Read More »

Handling Multiple Instances of a Widget in Android and Identifying each instance with it’s own ID.

Hey everyone…….Hope all are well….. This post is about Android Widgets. This is going to be one of the bigger posts in Coderzheaven. This posts helps you to handle multiple instances of a Widget. Many of our problem is to identify different instances of the same widget. But there is a solution to this problem.… Read More »

How to get a return value from a DialogFragment? or Using DialogFragments in android.

Hello all…… This post examples how to get an edittext value from a dialog fragment. You can use the same method to get a button click from a dialog or events like that. You can click on the download link to get the source code. At first we will create a layout for the Dialog… Read More »

Using a ListBox, Dynamically adding contents to a listbox in Windows Phone

This post shows how to add string objects to a ListBox Control in Windows Phone. Make sure to choose a C# template for the project. This is the layout . This is the complete Layout Just change the class name in the root of the layout to yours. Now we will look at the code.

Navigation Drawer Example in Android.

Navigation Drawer The navigation drawer is a panel that transitions in from the left edge of the screen and displays the app’s main navigation options. Displaying the navigation drawer Creating a Navigation Drawer The user can bring the navigation drawer onto the screen by swiping from the left edge of the screen or by touching… Read More »

How to create a fully customizable Toast which will use your own time duration and gravity and layout with ease without using the default toast in android?

Hello all We all have seen toasts right…ok then you have already customized your toasts right. Here I will show you a method to create toasts which will last the time you set and the gravity. You can download the code by clicking on the download links. This is the class that creates the toast… Read More »

Use of custom animations in a FragmentTransaction when pushing and popping a stack. or How to apply animations in Fragments when pushing on to a stack?

Hello all We have seen many examples of how to use fragments in android. You can search coderzheaven for all types of transactions using Fragments. Today in this post we will see how we can apply animations to Fragments when pushing on to a stack. This is fairly a long example. I will try to… Read More »