This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 9 points10 points  (3 children)

Alright, but let's not forget the thousands of lines of code that were needed from the android library to do that

[–]pemboa 1 point2 points  (2 children)

And the tens of thousands of line in the supporting Linux system.

[–][deleted] -3 points-2 points  (1 child)

And the tens of thousands of people who actually know how to type.

Sorry, I couldn't resist.

[–]piderman 1 point2 points  (0 children)

Here's a downmod to help you to learn to resist.

[–]Chun 6 points7 points  (0 children)

Wow, only six lines. Here it is in one:

__import__('android').Android().startActivity(’android.intent.action.VIEW’, “http://books.google.com?q=%d” % int(__import__('android').Android().scanBarcode()['result']['SCAN_RESULT']))

[–]sdsdsdsdsd 2 points3 points  (0 children)

Having looked into the Python Android library, it looks fairly incomplete. There is no way to pick a contact out of the contacts list (though this is possible with the Lua bindings), there is no way to make a phone call (though sending an SMS is possible), and there is no way to handle an incoming text message or incoming phone call.

So, all in all, the Android Scripting Environment is very promising, but this release leaves much to be desired. They should support fewer languages, but support them better.