SL4A – fix

I’ve been playing around with SL4A (scripting layer for android) – more specifically, python for android, and am impressed with the functionality and APIs till now. I ran across a small problem when attempting to run the included “” script. The error was something along the lines of the result for user input being none. Nosing through the script, the offending lines were line 30 and line 19, both of which contain the “droid.getInput” function. Seems like this has been deprecated and should now be turned into “droid.dialogGetInput”, so the two lines now become:

line 19: result = droid.dialogGetInput(‘Chat’, ‘Enter a message’).result

line 30: result = droid.dialogGetInput(‘Chat’, ‘Enter a message’).result

Otherwise it worked right out the box – fantastic work from the guys…

2 thoughts on “SL4A – fix

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.