All posts by Rich

Hello Jekyll!

One of the reasons for my hiatus here has been that my wordpress install is hard to keep secure, maintainable and lightweight. WordPress + security plugins + spam plugins + updates + databases need work to make the site work. This kinda explains things. I’ll maybe migrate this blog, but for the time being I’ll be posting over at, as it better suits my aims.

Using Robotium with a Play APK

This tutorial will look at how we can use Robotium to run tests on Android applications where we don’t have the source code, only the APK from Google Play. It’s not meant as an extensive review of what Robotium is or how is compares to other testing frameworks, just the basics that are required to get started in a slightly less verbose fashion than the informative ‘official’ documentation. Robotium can be downloaded here and if you want to head straight to the Robotium documentation for this task, it’s here. Continue reading

Moving WordPress

OK, this is going to be a very short post, more of a mental note than a tutorial, about moving a WordPress install. The task was to move from to where the files for were to be stored in a folder rather than the root of the www directory (the www folder hosted multiple sites). Basically I followed this tutorial, skipping steps 12 – 15. I would add to this tutorial that you need to download and edit the following lines in your wp-config.php file;

define( 'WP_CONTENT_DIR', '/home/hosting/public_html/' );
define( 'WP_CONTENT_URL', '' );

to reflect the new URLs

define( 'WP_CONTENT_DIR', '/home/hosting/public_html/' );
define( 'WP_CONTENT_URL', '' );

This was the change that made everything appear as it should. From here I could re-apply my custom theme and have all my plugins show up without errors.

Embedding a Cordova WebView in a Native Android app

Sept 2013 – Updated to use cordova 2.9 – see github repo

A few months ago I wrote a tutorial on Hybrid apps and accessing native functions from an Android WebView. I made a comment that while Apache’s Cordova can do this fine, you wouldn’t use Cordova from within an app. Then I discovered you could embed a Cordova WebView within a native app. If you’re not familiar with Cordova, this means you can create an Activity within your native app which uses HTML5 and JavaScript to create the UI and access native functions and features via the Cordova API.

Continue reading

Learning Git

This weekend I have been learning how to use git version control, so I can share my projects/demos via Github, and hopefully get involved in some too. Rather than using the Github application or EGit Eclipse plugin (which I had used in the past), I’m in the process of learning command-line git. There are going to be times when having a downloadable project is going to help explain/understand a tutorial better than just a blog post alone. If you are interested in learning about git and don’t know where to start, I recommend the Lynda ‘Git Essential Training’ course.

Accessing Twitter API 1.1 on Android

This tutorial covers the basics of using the Twitter API to access your own tweets, most likely with a view to displaying them in an app. Updated on Friday 13th September 2013, source code available on Github

Twitter API v1.0

On the 5th March, 2013, v1 of the Twitter API will be no longer be accessible. Currently, you can get access to Twitter REST API using unauthenticated HTTP requests. Continue reading