Where a mistake?

Simple program with the function droid.getInput refuses to work
import android

droid = android.Android()

p=droid.getInput ('hello', "What is your ")
There is a bug dlopen libpython2.6.socom.googlecode.android_scripting.rpc.RpcError: Unknown RPC.
Result(id=1, result=None, error=u com.googlecode.android_scripting.rpc.RpcError
Unknown RPC.')





Where is the error?
July 8th 19 at 11:46
1 answer
July 8th 19 at 11:48
Solution
> Where is a mistake?

in the DNA! not only that, you didn't bother to question to write about the technology used (telepaths, as you already know, on vacation), so you haven't attached the error log.
And the most sucks, you don't read the documentation.

times:
Note that, if you only want to ask the user for some text input, like Python's `input` 
would function, or a password, you can use the `dialogGetInput` and 
`dialogGetPassword` methods, which are just convenient wrappers,
allowing you to get these inputs in a single call.


two:
http://www.mithril.com.au/android/doc/index.html
when you call sl4a,you have to tell what to do sl4a, sl4a if you don't recognize it
sl4a RPC throws an Unknown error


three:
getInput: Deprecated in r3. Use dialogGetInput instead.


//it was all found in 5 minutes, despite the fact that this licentiousness on pyhton I have never covered and do not advise!
Just getting started. For me it is the first language and a lot of rake)
Sorry for the stupidity, I confess. And where did you find documentation? In the second paragraph have? - Jacky.Gleichn commented on July 8th 19 at 11:51
: the documentation I found, suddenly, in Google! :) For Android I'm highly recommend d.android.com and not the heresy that you grabbed. - Montana_Abshire commented on July 8th 19 at 11:54
And where did you find the error log? Nichchego don't understand) - Jacky.Gleichn commented on July 8th 19 at 11:57
:
> And where did you find the error log
I do not need. I'm a telepath. - Montana_Abshire commented on July 8th 19 at 12:00
: I think I will pull the sdk? - Jacky.Gleichn commented on July 8th 19 at 12:03

Find more questions by tags PythonAndroid