Archive

Archive for February, 2011

A 30 minute guide to integrating Facebook in your Android application

February 28th, 2011 ddewaele 87 comments

Introduction

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 http://download.eclipse.org/egit/updates.

Before running this project, make sure you change the com.ecs.android.facebook.Sample.AndroidFacebookSample 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” »

Bookmark and Share
Categories: Facebook SDK Tags: , , ,

A 30 minute guide to integrating Twitter in your Android application.

February 13th, 2011 ddewaele 51 comments

Important note : As an update to this article, I’ve prepared a new post entitled Improved Twitter OAuth for Android focussing on a more simple Oauth / Android experience, and using the Google APIs Client Library for Java.


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

  • setup a twitter test account
  • register a twitter application
  • authenticate the user in your Android application.
  • have the user send tweets from your Android application.

This guide is accompanied  by a sample application that’s available in Github in the AndroidTwitterSample repository. To import this project in Eclipse, I suggest using the EGit plugin that can be installed via the Main P2 Repository located at http://download.eclipse.org/egit/updates.

Before running this project, make sure you change the com.ecs.android.sample.twitter.Constants file to include your consumer key and consumer secret. (see subsequent section).
Once you have sample application up & running, you can copy the relevant classes into your projects to have Twitter up & running.

Twitter uses the OAuth protocol to authorize your android application to send tweets on behalf of the end-user. The end-user will need to authenticate against Twitter (meaning that your application will not capture the twitter username / password). Once the user has authorized access, you’ll be able to send tweets on behalf of the user. We’ll use signpost library to handle the OAuth communication, and the Twitter4J library to handle the Twitter specific interactions (sending tweets).

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

Bookmark and Share
Categories: OAuth Signpost Tags: , , ,

Latify – a feature-rich Google Latitude client

February 3rd, 2011 admin No comments
Google Latitude is a free service from Google that allows you to share your current location with a selected number of your Google contacts. It also allows you to record your past location changes, and provides you with a dashboard view of your recently visited places. Google Latitude can be used from either a desktop application, or from your mobile phone. Google Latitude is well integrated in most Android phones. Through an extension on the Google Maps application, integration with Latitude is seamless. However, there are a couple of features that are missing in Google Latitude on Android phones, and that’s where Latify tries to fill in the gap.

Latify is an Android client for Google Latitude. With Latify, you can continuously update your current position when on the move or stationary. Even when you’re not online, Latify can sync up your location movements with Google Latitude once back online. Latify can be configured to update your location based on GPS positioning, even when running in the background. It also allows you to view and manipulate your history location stored at the Google Latitude servers. Latify uses OAuth for secure authorization and does not capture your password when logging into Google. All you need is a Google account, and a Latitude setup and you’re ready to go.

Included below are some of the Latify features

  • Record and sync your location changes in real-time to Google Latitude.
  • No need to have Latify running in the front.
  • Visualize & replay your location history on a map
  • Remove incorrect / redundant history entries
  • Re-publish your last known location at user-defined intervals when no GPS signal is available
  • Configure Latify to send an update of your last known location every minute, half hour , hour ,
  • Store your location updates on your phone without sending them to Latitude in realtime.
  • Push your location updates in one shot to Latitude (ex: when a WIFI connection is available)

Android Latify

Android Latify

Continue reading “Latify – a feature-rich Google Latitude client” »

Bookmark and Share