Posts Tagged ‘android’

Latify Android Video Review

August 29th, 2011 No comments

Not really a development post, but a video review of Latify (my app for Android). Video review was done by Enjoy….

Categories: Latify Tags: , , ,

Oauth 2.0 flow in Android

August 6th, 2011 32 comments
In this article, I’m going to show you how you can implement an OAuth 2.0 flow in Android.
We’ll be using 

In the sample application, we’re going to execute 1 authorized API call to the Latitude API. The call will return the current location of the user.

Continue reading “Oauth 2.0 flow in Android” »

Categories: OAuth Tags: , ,

Developing Android Home Screen Widgets

May 24th, 2011 19 comments
In this article, I’ll be showing you how to create a widget for the Android homescreen. Widgets can be useful to provide condensed information, without necessarily having to open your application. In addition to showing information, a widget can also be used to trigger certain actions related to your application. Instead of forcing the user to open up your application and navigating to a certain screen to perform an action, a widget can provide the user with a quick shortcut to that action. You can also dynamically change the layout of your widget (ex: when the user presses a button, the button can be highlighted, or a piece of text can altered). This article is accompanied by a sample android application that includes the widgets we’ll be discussing here.

Continue reading “Developing Android Home Screen Widgets” »

OAuth in Android using the Google APIs Client Library for Java

April 12th, 2011 6 comments
Today we’ll be looking at the Google APIs Client Library for Java.  The API is provided by Google, and is a flexible, efficient, and powerful Java client library for accessing any HTTP-based API’s on the web. According to Google, it is the recommended library for accessing Google API’s based on REST or JSON-RPC. One of the nice things about this library is that it fully supports the Android environment out of the box. So we’ll focus on those features in this article. oauth-android-logo

To avoid confusion, Google offers the following APIs (the first one being the topic of this post, and compatible with the Android platform) :

Unfortunately, there are no samples available that perform the OAuth dance in Android using this library, so I thought I’d write one myself. The code for this article can be found in the AndroidOauthGoogleApiJavaClient repository
Continue reading “OAuth in Android using the Google APIs Client Library for Java” »

A 30 minute guide to integrating Facebook in your Android application

February 28th, 2011 87 comments


The goal of this article is to get Facebook integration up & running from your Android app in 30 minutes. The guide will show you how to

  • setup a Faceook test account
  • register a Facebook application
  • authenticate the user in your Android application.
  • have the user update his Facebook wall from your Android application.

This guide is accompanied  by a sample application that’s available in Github in the AndroidFacebookSample repository. To import this project in Eclipse, I suggest using the EGit plugin that can be installed via the Main P2 Repository located at

Before running this project, make sure you change the file to include your Facebook API key (see subsequent section).
Once you have sample application up & running, you can copy the relevant classes into your projects to have Facebook up & running from your Android application.

First things first … In order to integrate with Facebook, you need 2 things :

  • A Facebook test account, used in our Android application to login to Facebook and make status updates.
  • A Facebook application, used to inform the user in your Android application that this application is requesting you to login to Facebook.

Continue reading “A 30 minute guide to integrating Facebook in your Android application” »

Categories: Facebook SDK Tags: , , ,

Debug a remote Android process in Eclipse

December 7th, 2010 4 comments
Most people that are developing Android applications using Eclipse will probably use the Eclipse ADT plugin. The plugin offers a lot of functionality, including

  • Debugging features, via it’s integration with the Dalvik Debug Monitor Server (DDMS)
  • Emulator control from the Eclipse workspace
  • XML Validation for Android specific files (strings, views,  menus , ….)
  • Project Wizards, to facilitate the creation and packaging of your Android app

In this short article, we’ll be discussing the debugging of remote android processes (the processes defined in your manifest using the android:remote attribute).

Android Eclipse ADT Plugin

Continue reading “Debug a remote Android process in Eclipse” »

Implementing the OAuth flow in Android

November 10th, 2010 35 comments
In this post, I’ll be showing you how to use the OAuth signpost library in an Android application. We’ll create a simple application that fetches your Google Contacts using the Google Contacts API, and display the contact names on the screen.
We’ll focus on using the Signpost API in an Android runtime, and implementing the OAuth workflow from the first step (requesting a request token) till the final API call with our access token. We’ll glue the entire OAuth workflow together in our Android application, using different techniques offered by the Android platform. As you can see from the screenshot below, it’s not the most aesthetically pleasing application, but it gets the job done.

Continue reading “Implementing the OAuth flow in Android” »