Android Development – Audio Playback, Safely

In this brief post we’ll be going over how to play back an audio file in a safe fashion. The Sound File Making sound files available to your Android application is as simple as recording them in an Android-acceptable format and then dragging them into your project. For this example, I recorded my oldest kid [...]

 
Android Development – More Animations, Part 2

In this final part of this series, I’ll demonstrate how to combine animations and sprinkle some interpolator goodness in the animation definition file. We’ll be picking up where we left off in Part 1, so go there to review if you have to. Animation Sets The way to combine animations in Android is by using [...]

 
Android Development – More Animations, Part 1

In this first part of the series we will present a few animations using TextViews on the same screen. The finished result will look like below. The Goal For this sample, we will be demonstrating three different animations: alpha, translate, and rotate. We will be defining the animations in XML files instead of code, and [...]

 
Android Development – Simple 2D Graphics Part 2

In this second of a two-part series, we will finish our simple Tic Tac Toe board by responding to user screen presses and drawing Xs and Os on the board as appropriate. We will be continuing with the code developed in Part 1, so review that as needed. Initial Strategy In the first part of [...]

 
Android Development – Simple 2D Graphics Part 1

In this first of a two-part series we’ll be going over some of the 2D graphics primitives that are provided by the Android SDK. To demonstrate this, we’ll draw a Tic Tac Toe board that responds to user presses. The first part will be the drawing of the board. In the second part we’ll capture [...]

 
Android Development – Using Custom Fonts

An Android device comes with 3 basic fonts – Droid Sans, Droid Sans Mono, and Droid Serif. These are sufficient for every day use, but for your custom apps you will most probably want to use your own font. This post will show you how you can do so. First Steps First step is to [...]

 

In this brief post I’ll go over how to implement a bare bones bounce animation on some hard-coded text in an Android app. To achieve this effect, we will be using both a translate animation class and a bounce interpolator class, both provided by the Android SDK. [Edit:] Some readers wanted to see what this [...]

 
Android Development – Database Management

In this post, I’ll go over bare bones database management in an Android application, demonstrating how to create a database and perform simple CRUD actions against this database. I’ll also wire up a very simple UI to test our CRUD functionality. Finally, I’ll show how to utilize the built-in database upgrade functionality. The Database Android [...]

© 2011 Musings of the Bare Bones Coder Suffusion theme by Sayontan Sinha