Monthly Archives: July 2013

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 5, 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 | July 1, 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 »