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 »

Creating a Clock Widget in Android with Custom Font.

By | June 5, 2017

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.

By | September 4, 2013

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.

By | September 1, 2013

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?

By | September 3, 2013

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.

By | August 21, 2013

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.

By | July 29, 2013

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?

By | July 22, 2013

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?

By | July 12, 2013

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.

By | July 6, 2013

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.

By | June 25, 2013

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

By | June 29, 2013

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.

By | February 12, 2016

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?

By | February 11, 2016

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?

By | March 4, 2016

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 »

How to display a context menu from a fragment?

By | June 13, 2013

Hello all I think you all know about the context menu in android. It appears as a popup when you long press something. Fragment also provides some methods for registering with the contextmenu and showing it. Let’s see how we can do it. You can click on the download links to download the source code.… Read More »

How to initialize a Fragements with attributes as a Bundle at runtime and from attributes in a layout?

By | June 5, 2013

This post Demonstrates a fragment that can be configured through both Bundle arguments and layout attributes. You can click on the links to download the source code. Here there are two fragments in the layout, one is directly in the layout and the other is created dynamically with arguments at runtime. Here is how we… Read More »

How to hide and show a Fragment with animation in Android? and How to retain a state in a Fragment in Android?

By | June 3, 2013

Hello everyone This posts helps you to hide and show a fragment with animation (without XML files animation). And also it shows how to retain a saved state(for eg: a value in a textview). A little about Fragments A Fragments is an independent component which can be connected to an activity. A Fragment typically defines… Read More »

Google’s Android will beat Apple’s iphone in total number of apps downloaded in next few months.

By | June 4, 2013

Analysts are saying that Google play store will be the most popular platform for downloading mobile apps in the next few months. History of Google Play Google Play, formerly known as the Android Market, is a digital application distribution platform for Android and an online electronics store developed and maintained by Google. The service allows… Read More »