Simplifying Interaction with Contacts

With the introduction of the new ContactsContract to replace the previous Contacts API in Android 2.0, came a drastic increase in both functional capability and API complexity for applications wishing to interact with the Contacts Provider.  This level of access allows applications to make very detailed and specific additions and updates to the Contacts/People database [...]

A Developer’s Adventures in Rooting

When I started developing applications for Android in early 2009, I never expected that I would ever own a rooted device.  I felt that, as a developer, I needed to be testing my applications in an environment that best emulated my users, and rooting would compromise that environment.  However, recently I have been forced to [...]

Synchronizing ScrollView

Recently, a post was made by Kirill Grouchnikov on his blog providing details on how the Android Market app uses a synchronized scrolling technique to take a certain view from inside the ScrollView content and let it float to the top of the screen when it would have otherwise been scrolled off-screen.  This post is meant [...]

Multiple Clickable Zones in ListView Items

Developers often have a need to create rows in a ListView that have multiple interactive locations that the user can touch, instead of just one single clickable row.  This is a pattern that even Google has employed in apps like the DeskClock. DeskClock’s Alarm tab display each list item with a small toggle button inside, [...]

Quick Rounded Corners

Application developers often want to display images with rounded corners.  A common technique for accomplishing this in Android is to construct a new mutable Bitmap object, draw a rounded rectangle, and then draw in the image contents using transfer modes.  An example of a method that would accomplish this is below: public Bitmap createRoundedCornerBitmap(float radius, [...]

Manufacturing Unique R.id Values

If you have been developing in Android for any length of time, you’ll most likely be aware that one of the most useful portions the resource framework is the fact that Views and other resources can be given an android:id tag in their XML declaration, and Android will make sure to compile all the ids [...]

Signing Up UITableView

Thanks mainly to Apple’s design choices when building the Settings app for iOS devices, the Grouped-Style UITableView has become the de facto standard UI for app developers to use when creating settings or account signup screens within their own applications.  In many ways, this is a very helpful standard to follow due to the amount [...]

The Missing Manual: Android Bluetooth RFCOMM

Bluetooth communication has been a part of the Android SDK since the 2.0 release late last year. The APIs available in the android.bluetooth package are primarily focused around three application functions: Discovering other devices Connecting to devices Transferring data using the RFCOMM layer With this capability, developers can write applications that transfer data between devices using [...]

Processing UIImagePickerController

The UIImagePickerController class has been the developer’s best friend and worst enemy since its introduction into the iPhone SDK in iOS 2.0. For those who have not used it, this class provides a way for an application to have the user select and return an image, whether it be existing from the device’s library or [...]

A Short Note About Modal Presentation

iOS5 Update New in iOS5, the use and meaning of many of the existing UIViewController properties has changed as part of the new container view controller framework that is being made available. As a result, some of the information in this article is no longer valid. In particular, the parentViewController property is no longer populated [...]