Now works as cordova plugin with cordova command line
Updated for latest android API