LibGDX from Badlogic Games is “a cross-platform game development library written in Java with some JNI code for performance hungry sections. It abstracts away the differences between writting desktop and Android games based on OpenGL. This allows you to prototype and develop your application entirely on the desktop and only needing 6 lines of code to make it run on Android.”
After trying various Android libs I think Libgdx will be what I use in the future, it’s got a clever bunch of people developing it and forms the basis of many of the other libraries available (Andengine, Rokon etc) without all the extra cruft.
However, until now the prototyping on the desktop has only worked in Windows & Linux, but that’s all changed thanks to the help of ‘pirato’ on the Libgdx forum, who’s built an OSX version of the required dynamic lib.
Before you can use it, you’ll need to have the mpg123 library installed, which is pretty straight forward…
You can then grab pirato’s library file from here (until it’s been officially added to the libgdx repos) and add it to your projects ‘libs’ folder.
You should now be able to run the desktop version of your app under OSX.
Woot, Android dev just got a step easier!