Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Android Tutorial - Clickable Widgets

· 1 comment · 200 words · Viewed ~4,212 times


Another quick Android tutorial. I couldn't find an easy or correct method of launching a browser when you click on a homescreen widget. Well, here it is... public class clickWidget extends AppWidgetProvider { @Override public void onUpdate( Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds ) { RemoteViews remoteViews = new RemoteViews( context.getPackageName(),…

Mobile Badvertising: Samsung Galaxy S

· 750 words · Viewed ~467 times


In this Mobile Badvertising series, I regularly pick on the Guardian.  I don't have anything against them - they're my favourite mobile news resource.  It's such a shame that the advertising they have on the site is atrocious. Samsung Galaxy S The Galaxy S is Samsung's latest Android handset.  There are so many Android phones out there that you need a really great advertising campaign (or a re…

Android App - Vodafone UK USSD Commands

· 5 comments · 200 words · Viewed ~2,935 times


This is a really geeky app! You know USSD? They're the codes you can type in to your phone to send messages back and forth to the networks.  You've probably seen something like *#147# to display the last caller. My second app presents a series of buttons which call the USSD commands - so you don't have to remember if it's the HLR or VLR which is queried by *#103#. Useful, I know.... You can …

Android App - Advanced Test Card

· 1 comment · 150 words · Viewed ~1,262 times


I've been playing around with Android. It's a great platform for development. I really appreciated the speed to release of the Android Market - it's instant. Having worked with iPhone and Ovi stores where approval can take days or even weeks, it's great to have the freedom to publish immediately. The first app I've created is "Advanced Test Card". You can download it by scanning in this QR…

Twitter API - pagination and IDs

· 11 comments · 550 words · Viewed ~5,883 times


The Twitter logo.

Looking for some Twitter API help.  Bit of a geeky post, this... Pagination is the act of splitting data into logical  pages. Suppose I had a list of item, numbered 0 - 99.  If I want 20 items per page, it's trivial to see that pagination looks like: p1 = 0-19 p2 = 20-40 p3 = 41-61 p4 = 62-82 p5 = 83-99 If I wanted to start at, say, page 55 - pagination would look like: p1 = 55-75 p2 = 76-96 …

Mobile Badvertising - Guardian, Barclay's, Apple Redux

· 1 comment · 350 words


Once again my wrath is targeted at The Guardian, Barclays and Apple. Three massive companies - each one of whom could have stopped this advertising disaster. Mistake #1 Take a look at this rather charming advert on the Guardian's mobile site. The more astute among you will recognise the problem. I'm being advertised an iPhone game when I'm browsing the site using an Android phone. This is…

Orange Mobile Badvertising

· 2 comments · 450 words


It has been a while since I last posted in the Mobile Badvertising section. Mobile adverts are slowly improving. By every once in a while, I spot an advert of such mind numbing ineptitude that I am compelled to post. Orange Take a look at the latest offering from Orange - a large UK mobile network operator. Orange Advert on Guardian Spot it? It's the microscopic banner hidden away on the…

HOWTO: Twitpic and OAuth

· 25 comments · 700 words · Viewed ~5,180 times


Logo of TwitPic.

I am no longer confused! Here is a quick tutorial in how to post images to Twitpic and Twitter when using OAuth. I'm indebted to Steve Corona of Twitpic, for his help with this. You can see the full code on Dabr's Google Code page. First of all, you'll need to have enabled OAuth for your Twitter client. I use Abraham's excellent OAuth libraries for PHP. This tutorial assumes you already…

Twitpic OAuth - I'm Stuck

· 13 comments · 300 words · Viewed ~3,303 times


Logo of TwitPic.

Twitpic has implemented an OAuth API. No more having to hand out passwords to all and sundy. Only I'm too much of a dunderhead to get it working. Perhaps it's a combination of heatstroke or this rotten head-cold, but I just can't see what I'm doing wrong. Any help much appreciated. The easy bit. It's easy to post the data to Twitpic $media_data = array( 'media' =>…

Did The Lib Dems Cost Labour The Election?

· 5 comments · 1,000 words · Viewed ~487 times


Logo of the UK's Liberal Democrats.

There have been howls of protest from Labour voters at the prospect of a Lib/Con coalition. The main complaint is that anyone daft enough to vote for Clegg has caused a Tory government. But is it true? Using data from The Guardian, we can see if the Lib Dems cost Labour a majority. In how many seats did a Labour candidate lose to a Conservative? 137. But this doesn't tell the whole story. In…

TARDIS

· 200 words · Viewed ~253 times


Having moaned that my TARDIS was too full, I set on a quest to find another. The cardboard one I had appears to be the last of its kind - but I did manage to snag this beauty on eBay. It's a Panopticon '93 Officially licensed TARDIS - similar to this one on RetroTrader. Click to embiggen images. It's a little scuffed, but nothing a lick of paint can't fix. Of slight - very slight -…

Android and Google Contacts - Address Incompatibility

· 250 words · Viewed ~613 times


I'm in the process of moving all my contacts from BlackBerry to Android. I've been moving contacts from phone to phone for close to 10 years - but I've never found a problem like this. Getting my contacts from BlackBerry to Google was simple. I exported a VCF of all my contacts from Outlook and imported them to Google. Simplicity. Everything worked. Syncing back to Android was easy - input…