Category Archives: Android

Android Tutorials and Code Examples

Request a Tutorial

Request an Android Tutorial by leaving me a comment on this post and I will create one!

–Eric

5 Comments

Filed under Android

AppWidget Tutorial

AppWidget Overview

Most applications on Android have to be launched with a launcher, but classes extending the AppWidgetProvider class will be shown among your available widgets.  This tutorial loosely follows the AppWidget Guide

 

(more…)

2 Comments

Filed under Android, Programming

facebook-android-sdk Tutorial

Overview

This tutorial assumes you have done some preliminary setup:

(more…)

42 Comments

Filed under Android, Facebook, Programming

Android Application Null Pointer Exception in Eclipse IDE

This problem probably cost me about 2hrs. There is a bug in version <9.0 of the Android SDK that will cause Eclipse to give the dreaded NullPointerException for Android Application and Android Unit Tests </lame>.

However, there is a simple solution to this problem:

Help->check for updates.

It will tell you that you can update to SDK v9.0: do it, and you are good to go! You can edit your Run Configs and Test Configs without getting cryptic error messages anymore.

Leave a Comment

Filed under Android

Adding REST Webservice Functionality

For one of my current projects, bpstats.com, I needed to learn how to interface with a REST webservice from an Android application.

Here is a tutorial for creating a generic REST webservice client for the Android SDK.  (more…)

2 Comments

Filed under Android, Programming