Web and Windows Phone 7 by Ben Cull

Archive for the “Android” Category

Endless Scrolling ListView in Android

Posted on August 9th, 2010 by Benjii

Implementing an endless scroller in Android was not actually that difficult. Here’s a quick code snippet and explanation to get you on your way. Just give me the code! Well here you go: public class EndlessScrollListener implements OnScrollListener { private int visibleThreshold = 5; private int currentPage = 0; private int previousTotal = 0; private [...]

Deserializing JSON in Android using GSON

Posted on April 30th, 2010 by Benjii

The quickest and easiest way to serialize/deserialize JSON in Android is to use Google’s GSON library. It contains almost everything you need to connect your android application to a web service that returns JSON. I’ve also included a quick filter to successfully deserialize Microsoft styled dates from JSON to Java. Download the GSON library Go [...]

I’m an Android developer

Posted on April 22nd, 2010 by Benjii

Recently I have become obsessed with creating an android app that everyone will love. I realise that android has been out for quite some time now and I should have jumped on the bandwagon earlier, but now that I have arrived at the party, I couldn’t be happier. I’ve owned a HTC Hero since around [...]