Tag Archive: Sharing


We have been working since past few weeks on a new version of Sports Eye that is specific to the game of Soccer (Football). We have just released that version in the Android Market. The app follows freemium model having a less-featured free version and a Full version that’s ad-free and have more features.

Here’s the description text from the market:

“Follow the thrilling game of soccer (football) on your own Android phone. Get latest updates from famous news sources, expert opinions through top blogs and live scores at your fingertips. Find what your favorite players are up to by following them, track your favorite team in ranking tables and find upcoming matches through various schedules provided by the app. Share the updates with your friends on Facebook, Twitter and through email and SMS.

Tournaments: FIFA World Cup, UEFA, Premier League, La Liga, League One, League Two, FA Cup, Spanish Primera and others.
Players: Andres Iniesta,Carles Puyol,Carlos Tevez ,Cesc Fabregas,Cristiano Ronald,David Beckham,Diego Forlan,Fernando Torres ,Frank Lampard ,Johan Djourou,Kaka ,Lionel Messi ,Lukas Podolski,Nicolas Anelka,Robin Van Persie,Ronaldinho Gaucho,Ryan Babel,Steven Gerrard,Thierry Herny,Wayne Rooney,Xabi Alonso,Zlatan Ibrahimovic
Teams: Brazil, England, France, Italy, Australia, Spain, Germany, Argentina
Leagues: Arsenal, Manchester United, Chelea, Barcelona, Real Madrid, Liverpool
News Sources: ESPN, FIFA, Soccer League, Soccer News, UEFA News
Blogs: 101 Great Goals, EPL Talk, Kickette, NY Times, Pitch Invasion, Reuters, Soccer Lens
Live Scores: ESPN, Flash Score, Soccer Way, Sky Sports
Schedules: ESPN, BBC, Sky Sports
Tables: Sky Sports, BBC Sports”

Links to the market after the break.

Full Version: http://tinyurl.com/66zjr59
Lite Version: http://tinyurl.com/5szhhmf

Recently, I had to implement Twitter sharing in my new app that I have been working on recently. Upon searching about how to do this, I found out a library called Twitter4J. This library has some decent functions but it’s not that simple to implement as compared to the Facebook SDK which handles all the stuff within and exposes some handlers for post-authentication tasks.

Anyhow, I continued my research about using this library and found out some implementations that launch the browser for authentication and then invoking your application back when the process is complete. From there onwards, things become simple.

I however didn’t like the idea and rolled over my sleeves to code what I had in my mind. Instead of loading the browser, all I did was put a webview in my activity to load the authentication url in it. Upon completing authentication, it is redirected to the callback url that is specified while initializing the twitter object. Checkout the code below:

 Capture

You can specify any custom URL in place of CALLBACKURL (which is defined as a constant in my class). After this, all you have to do is to place a check in your WebViewClient’s onPageStarted method to find out if the authentication is done and the twitter has redirect you back to your callback URL.

Capture

Almost done! Smile Now you can use the updateStatus function to update the status on Twitter.