Matt Reid | Senior Software Developer

Matthew Reid is a Full Stack web developer, specialising in Java and the JVM, js and web frameworks. He has a passion for clean code, entrepreneurship, company culture and making the world a better place.

getWebView().setWebViewClient(new TwitterOAuthWebViewClient());I have been using the excellent Spring Android for interaction with an api for an app I am developing at work. The spring-android-showcase project has been excellent in helping me breeze through development. I easily implemented Facebook connections using the FacebookWebOAuthActivity One issue I found when implementing the TwitterWebOAuthActivity was that...

I got this tip from a wonderful presentation by Eric Burke of square but it works so well I needed to share it. Android has no standard depressed animation for ImageButton’s so it requires a bit of hacking around to get a similar effect. This can also be used to...

I was recently running a webapp on tomcat that needed to run on port 80 for the links to work. This isn’t easy in osx as port 80 is already being used by other things. The simplest way was to start tomcat on port 8080 (default) and set up forwarding...

Communication with an XML-RPC server via Java is extremely easy with the apache XML-RPC library using the following snippet: XmlRpcClient client = new XmlRpcClient(); XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();// Setting timeouts for xmlrpc calls made using XmlRpcSunHttpTransportFactory, the default connection factory int xmlrpcConnTimeout = 10000; // Connection timeout int xmlrpcReplyTimeOut...

I recently found the following post on stackoverflow here, simply add the following code (sorry, no xml version) tabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 25; If you have your tabs positioned at the bottom of the screen, make sure you give android:gravity=”bottom” to your layout