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

pickPhone() and pickContact() problem #109

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?
HTC Desire
What firmware version are you running on the device?
MIUI-1.12.30.0 Android 2.3.7
What steps will reproduce the problem?
1. Call pickPhone() or pickContact() or pick("content://contacts/phones")
2. Pick any contact (you just can pick contacts with pickPhone(),  pick() 
doesn't work )

What is the expected output? What do you see instead?
-pickPhone()
expected: Result(id=6, result=u'666666666', error=None) of the picked number
what I see: The output result is always the same, doesn't matter what you pick.

-pickContact()
expected: Result(id=6, result=u'Contact name', error=None)
what I see: Result(id=5, result=None, error=None) and Android Force Close of 
the contacts list.

-pick("content://contacts/phones")
expected: the same that pickPhone()
what I see: org.json.JSONException: Failed to build JSON result.Result(id=7, 
result=None, error=u'org.json.JSONException: Failed to build JSON result.')

What version of the product are you using? On what operating system?
sl4a r4 on android 2.3.7

Please provide any additional information below.
Logcats attached

Original issue reported on code.google.com by dey...@gmail.com on 19 Feb 2012 at 7:47

Attachments:

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