damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

Python to WebView Javascript event failures #121

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

What device(s) are you experiencing the problem on?

ZTE Racer

What firmware version are you running on the device?

CyanogenMod Gingerbread. custom builds. more details on request - please let me 
know if this isn't a problem on other setups as I only have the one droid to 
test on.

What steps will reproduce the problem?

1. call eventPost from python, and include a string of data to be passed across.
2. block on the event in a Javascript WebView you spawned, and observe the 
'error' rather than 'result' key set on the return value.

see my stackoverflow post for more details:

http://stackoverflow.com/questions/8114735/android-sl4a-how-to-link-to-relative-
scripts-in-html-javascript-app

This other issue may have the same underlying cause, although different 
symptoms:

http://code.google.com/p/android-scripting/issues/detail?id=559

What is the expected output? What do you see instead?

should be able to read the data string out in the javascript, instead get an 
exception from somewhere deep in the underlying java.

What version of the product are you using? On what operating system?

r4, on Gingerbread (cyanogenmod + google apps).

Please provide any additional information below.

see the stack overflow post for the test cases I tried - the pertinent one is 
the second attempt listed.

Original issue reported on code.google.com by joe.jord...@gmail.com on 13 Nov 2011 at 11:53

Copied from original issue: damonkohler/android-scripting#586

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

Please delete this Issue - I was using the API wrong (of course).

Apologies for wasting time!

Original comment by joe.jord...@gmail.com on 15 Nov 2011 at 11:51