Archive for April, 2012

Android Special Effects: Alpha Animation

An Alpha Animation is animation that controls the alpha level of an object, i.e. fading it  in and out. In Android, you can apply that fading effect to almost  anything, from simple text, to images, buttons, check boxes, etc… Android has a few classes that can help you add that special effect to your programs, […]

, ,

4 Comments

Android Persistence: External Storage (SD Card)

Of all the options for Android storage discussed previously, storing files externally on the phone’s SD card appears the least desirable option, for a number of reasons: There is a security issue as a (non-encrypted) file can be read by other applications There is an availability problem as the user can unmount  or remove the […]

,

Leave a comment

Android Persistence: Internal Storage

As Android developers, we have a few options for persisting our application data across runs: SQLite database external storage on the SD card, or through networking SharedPreferences (see previous article) or we can use the phone’s internal file system, and store data in files which are, by default, only visible to our application. Why would […]

, ,

7 Comments

Android Persistence: SharedPreferences

Android provides a number of options for persisting data, from using SQLite databases to internal or external storage on the SD card.  For primitive types however, there is a much simpler technique for saving data between user sessions called SharedPreferences, which provides persistent key-value pairs of primitive data types. A priori, we might think that, by […]

,

1 Comment

The Seagull Manager (Tales from the Dark Side)

. “Seagull managers fly in, make a lot of noise, dump on everyone, and then fly out.” – Ken Blanchard,  “The One Minute Manager “. . How do we know we have Seagulls as Managers?  We never see them until there is a problem. Then…surprise! Here they are to save the day, or so they say […]

,

Leave a comment

Playing Sounds in Android

Whether you created a game and would like to add sound effects, or play music from your application, Android gives you a couple of options to do so, namely: The SoundPool The MediaPlayer The general guidelines on which one to use and when, are that SoundPool is best for short sound clips (notifications sounds, sound […]

, ,

1 Comment

Android SMS popup – Part Four: Implicit Intents

In Part One, we captured SMS messages using a BroadcastReceiver. In Part Two, among a set of options, we chose to pass the needed SMS information (sender, message and timestamp) as a Serializable ‘PopMessage’ object from the background to the foreground alert dialog that we constructed in Part Three: In this last section, we will complete this […]

, , ,

10 Comments