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(),…
Continue reading →
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…
Continue reading →
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 …
Continue reading →
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…
Continue reading →
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 …
Continue reading →
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…
Continue reading →
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…
Continue reading →
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…
Continue reading →
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' =>…
Continue reading →
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…
Continue reading →
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 -…
Continue reading →
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…
Continue reading →