sl4a

Scripting Layer for Android Tablet Remix - Release 2!

A road scene phptographed on long exposure to show a trial of lights

Three months have gone by since the release of the first version of the Scripting Layer for Android Tablet Remix. In that time quite a few changes have been made to the upstream version of the Scripting Layer for Android (SL4A) and I have had a few people asking me when these features are coming to the Tablet Remix. So just in time for Christmas I am pleased to announce that these changes have been imported into the source code for the Tablet Remix and it is now completely up to date with the latest SL4A features! Probably the most significant of these is the Full Screen UI.

How to use the Google+ API (and others) with the Scripting Layer for Android (SL4A)

A photo of chairs arranged in a circle

There was once a time when Google was mainly associated with search, but today many of us use all sorts of Google services. The latest of these to draw a lot of attention is Google+ a relatively new social network which could maybe be described as a bit like Tumblr crossed with Facebook. Google offer APIs to many of these services and recently added a read only API to Google+. They also supply client libraries that are designed to work with traditional desktop environments but with a bit of modification can be made to work with the Scripting Layer for Android (SL4A). We need to modify the code in one of the program files that Google supply and change the location of some of the files, but after that you can go ahead and integrate all sorts of Google services with your scripts.

SQLite, CouchDB and SPARQL with Scripting Layer for Android

Men putting up a telegraph pole in 1909 in New South WalesThe Scripting Layer for Android (SL4A) and the new SL4A Tablet Remix have a lot of powerful features and interestingly can be used to consume data from a variety of sources both online and offline. The ability to work with some data sources, such as simple relational databases is built in, but thanks to the ability to add additional code libraries to this environment we also get the opportunity to work with non-relational databases and even Linked Data. In this article I will quickly show you how to work with three different types of data source using Python in SL4A: a relational database in the form of a SQLite file, a non-relational database in the form of CouchDB and Linked Data generated from Wikipedia which we will interrogate using the SPARQL language.

Scripting Layer for Android Tablet Remix - Release announcement

Small figure carrying a memory module*** UPDATE: The second version of this app has now been released. This page has been updated with the new version. *** A couple of days ago on the android-scripting Google group I was very pleased to announce the first release of the Scripting Layer for Android Tablet Remix also known as SL4A Tablet Remix. As the name implies this is a version of the Scripting Layer for Android that has been adapted for Android Honeycomb tablets, especially the Asus EEE Pad Transformer. There is still a lot of work to do on this app and a lot of improvements that can be made, but at last in is in a usable state and if you enjoy programming or want to learn about it this could be for you. The app builds on the fantastic work done by the contributors to the original SL4A project and extends functionality to being the Honeycomb look and feel to the app as well as extending the programming environment provided by SL4A to take advantage of some of the great features of the latest Android tablets.

Adapting Android Scripting Layer (SL4A) for tablets

SL4A logoRecently my evenings seem to have been disappearing in the blink of an eye. It is funny that when you get really into a bit of computer programming time can seem to disappear quite quickly. It can be quite a fun and mentally challenging way to spend time, not to mention absorbing. So I am hoping the project I am working on will enable more people to join that fun by writing small programs on their tablets. I am working on a version of the Scripting Layer for Android ("SL4A" – which used to be known as the Android Scripting Environment) and adapting it for tablets, especially the EEE Pad Transformer. The aim is to make the package work well on tablets and to adjust the user interface to make the most of the screen and new features such as the Action Bar.

Using the Android Scripting Environment to find out if a book is in the Library

Being a developer type I couldn't wait to start experimenting with coding on my new HTC Desire. Being Android powered it is very friendly and coding mainly takes place in Java, which I'm familiar with. This class of mobile device is incredibly powerful of course, armed not just with portability and web access but also decent processing power and a variety of sensors. We're still learning about what exactly this means and what opportunities it can bring and so it is very important to be able to experiment, try out ideas and build rough prototypes. This is where the Android Scripting Environment (ASE) comes in, and I used it to build a prototype application to scan a barcode on a book and use that code to see if it is in a library. Handy when deciding whether to buy a book!

Subscribe to RSS - sl4a