Android Project Structure in Eclipse

In this article, we will examine the Android project structure and file organization in detail, by creating a new Android project in Eclipse. Before that, it will be better to read my earlier post on how to setup a complete Android development environment in the Android development tutorial series.

When we start a new Android project in Eclipse, it will automatically creates a lot of files and folders for us. We will look at the meaning and functions of each of these folders in the Android project structure one by one.

You have to create a new Android project in Eclipse to see the project structure. Continue reading

Android Activity Lifecycle - Android Key Concepts

This is my third and final post in the Android key concepts series and the most important one, I think.  In this article, we will explore the Android activity lifecycle and various event handlers associated with each stage changes. If you don't know what an Activity in Android is, go to Android application components first.

We know how an application behaves in desktop platforms like Windows, Linux or Mac. After starting a program, we can minimize or restore it whenever we want and the software will preserve its state (unless the system crashes). The situation is entirely different in Android and we have lesser control on the lifetime of an application in Android. Therefore as a developer, we should make a thorough knowledge on Android activity life cycle before start developing. Continue reading