Blog – 4 Columns

Android Tutorial: Database System
Android Tutorial: Database System

Android has its own technology for working with databases and it has nothing to do with Java Database Connectivity (JDBC), the technology Java developers use for accessing data in a relational database. In addition, Android ships with SQLite, an open-source database. This chapter shows how to work with the Android Database API and the SQLite…

Android Tutorial: Storage System
Android Tutorial: Storage System

Reading from and writing to a file are some of the most common operations in any type of application, including Android. In this article, you will learn how Android structures its storage areas and how to use the Android File API. Overview Android devices offer two storage areas, internal and external. The internal storage is…

Android Tutorial: Preferences
Android Tutorial: Preferences

Android comes with a SharedPreferences interface that can be used to manage application settings as key/value pairs. SharedPreferences also takes care of the writing of data to a file. In addition, Android provides the Preference API with user interface (UI) classes that are linked to the default SharedPreferences instance so that you can easily create…

Android Tutorial: Animation with example
Android Tutorial: Animation with example

Animation is an interesting feature in Android that has been available since the very beginning (API Level 1). In this article, you will learn to use an Animation API called property animation, which was added to Honeycomb (API Level 11). The new API is more powerful than the previous animation technology called view animation. You…

Android Tutorial: Multi-Pane Layouts
Android Tutorial: Multi-Pane Layouts

An Android tablet generally has a larger screen than a handset. In many cases, you might want to take advantage of the bigger screen in tablets to display more information by using a multi-pane layout. This chapter discusses multi-pane layouts using fragments that you learned in Android Tutorial: Fragments. Overview A tablet has a larger screen…

Android Tutorial: Fragments
Android Tutorial: Fragments

A powerful feature added to Android 3.0 (API level 11), fragments are components that can be embedded into an activity. Unlike custom views, fragments have their own lifecycle and may or may not have a user interface. This chapter explains what android fragments are and shows how to use them. Related: Android Tutorial: The Activity Lifecycle…

Android Tutorial: Graphics and Custom Views
Android Tutorial: Graphics and Custom Views

Thanks to Android’s extensive library, you have dozens of views and widgets at your disposal. If none of these meets your need, you can create a custom view and draw directly on it using the Android Graphics API. This chapter discusses the use of some members of the Graphics API to draw on a canvas…

Android Tutorial: Bitmap Processing
Android Tutorial: Bitmap Processing

With the Android Bitmap API, you can manipulate images in JPG, PNG or GIF format, such as by changing the color or the opacity of each pixel in the image. In addition, you can use the API to down-sample a large image to save memory. As such, knowing how to use this API is useful,…