Wednesday, April 21, 2010

BookMooch Android app, with Android Scripting Environment

Inspired by this LibraryThing script, I made a python script for  Android Scripting Environment that reads ISBN codes from bar codes and adds books to my BookMooch. Basically, ASE lets you access Android APIs in many scripting languages (supported interpreters include Lua, BeanShell, Python, Perl, JRuby, Tcl, JavaScript, Ruby, etc). What makes this experiment, and ASE, interesting, is the possibility for rapid development of impromptu apps like this (the script is 6 lines long). Best of all, it's entirely possible to put a hack together directly on the device - ASE comes with an integrated API browser to better facilitate this.
    As Matt Katz, author of the LibraryDroid script, put it:
    That’s the openness I’m talking about. No approvals, because the phone is mine, not Google’s or Apple’s. I love it.
    Now contrast this with
    3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited). 

    No comments:

    Post a Comment