darylbrewer / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Phone call methods not working #436

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
Samsung Galaxy S (Captivate) 

What firmware version are you running on the device?
Android 2.1

What steps will reproduce the problem?
1. Execute call_contact.lua
2. Receive message "Call not sent, no valid number entered."

What is the expected output? What do you see instead?
Call should be placed.

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

Please provide any additional information below.

require "android"
android.phoneCall("content://contacts/people/417")

D/NotificationService( 2251): pkg:com.googlecode.android_scripting
D/NotificationService( 2251): enqueueNotification ::
notification.defaults = 0, Notification.DEFAULT_SOUND = 1,
notification.sound = null
V/sl4a.JsonRpcServer:238( 9402): Bound to 127.0.0.1:59802
I/ActivityManager( 2251): Starting activity: Intent { flg=0x10000000
cmp=com.googlecode.android_scripting/org.connectbot.ConsoleActivity
(has extras) }
V/sl4a.Process:111( 9402): Executing /data/data/
com.googlecode.luaforandroid/files/lua/bin/lua with arguments [/sdcard/
sl4a/scripts/Test_call.lua] and with environment
{ANDROID_SOCKET_zygote=14, LUA_CPATH=./?.so;/data/data/
com.googlecode.luaforandroid/files/lua/lib/lua/5.1/?.so;/data/data/
com.googlecode.luaforandroid/files/lua/lib/lua/5.1/loadall.so;/data/
data/com.googlecode.luaforandroid/files/lua/lib/lua/5.1/?/init.sl;/
data/data/com.googlecode.luaforandroid/files/lua/lib/lua/5.1/?/?.so;,
AP_HANDSHAKE=21b5c2da-ae80-4058-9fc8-b1c5074b6193, TMPDIR=/data/local/
tmp, ANDROID_BOOTLOGO=1, EXTERNAL_STORAGE=/sdcard, ANDROID_ASSETS=/
system/app, PATH=/sbin:/system/sbin:/system/bin:/system/xbin,
AP_HOST=localhost, BOOTCLASSPATH=/system/framework/core.jar:/system/
framework/ext.jar:/system/framework/framework.jar:/system/framework/
android.policy.jar:/system/framework/services.jar, AP_PORT=59802,
LUA_PATH=./?.lua;/data/data/com.googlecode.luaforandroid/files/lua/
share/lua/5.1/?/?.lua;/data/data/com.googlecode.luaforandroid/files/
lua/share/lua/5.1/?.lua;/data/data/com.googlecode.luaforandroid/files/
lua/share/lua/5.1/?/init.lua;/data/data/com.googlecode.luaforandroid/
files/lua/lib/lua/5.1/?.lua;/data/data/com.googlecode.luaforandroid/
files/lua/lib/lua/5.1/?/init.lua;/sdcard/sl4a/scripts//?.lua;,
ANDROID_DATA=/data, LD_LIBRARY_PATH=/system/lib:/system/lib/egl,
ANDROID_ROOT=/system, ANDROID_PROPERTY_WORKSPACE=13,32768}
D/NotificationService( 2251): pkg:com.googlecode.android_scripting
D/NotificationService( 2251): enqueueNotification ::
notification.defaults = 0, Notification.DEFAULT_SOUND = 1,
notification.sound = null
V/sl4a.JsonRpcServer$ConnectionThread:70( 9402): Server thread 94
started.
V/sl4a.JsonRpcServer$ConnectionThread:89( 9402): Received: {"id":
0,"method":"_authenticate","params":["21b5c2da-ae80-4058-9fc8-
b1c5074b6193"]}
V/sl4a.JsonRpcServer$ConnectionThread:132( 9402): Sent:
{"error":null,"id":0,"result":true}
V/sl4a.JsonRpcServer$ConnectionThread:89( 9402): Received: {"id":
1,"method":"phoneCall","params":["content://contacts/people/417"]}
D/sl4a.ConsoleActivity:757( 9402): onResume called
D/ViewFlipper( 9402): updateRunning() mVisible=true, mStarted=false,
mUserPresent=true, mRunning=false
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): Invocation error.
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402):
java.lang.NullPointerException
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
java.net.URLEncoder.encode(URLEncoder.java:93)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
com.googlecode.android_scripting.facade.PhoneFacade.phoneCallNumber(PhoneFacade.
java:
149)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
com.googlecode.android_scripting.facade.PhoneFacade.phoneCall(PhoneFacade.java:
139)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
java.lang.reflect.Method.invokeNative(Native Method)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
java.lang.reflect.Method.invoke(Method.java:521)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
com.googlecode.android_scripting.jsonrpc.RpcReceiverManager.invoke(RpcReceiverMa
nager.java:
87)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
com.googlecode.android_scripting.facade.FacadeManager.invoke(FacadeManager.java:
66)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
com.googlecode.android_scripting.rpc.MethodDescriptor.invoke(MethodDescriptor.ja
va:
104)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
com.googlecode.android_scripting.jsonrpc.JsonRpcServer
$ConnectionThread.process(JsonRpcServer.java:114)
E/sl4a.JsonRpcServer$ConnectionThread:116( 9402): at
com.googlecode.android_scripting.jsonrpc.JsonRpcServer
$ConnectionThread.run(JsonRpcServer.java:74)
V/sl4a.Process$1:128( 9402): Process null exited with result code 0.
V/sl4a.JsonRpcServer$ConnectionThread:132( 9402): Sent:
{"error":"java.lang.NullPointerException","id":1,"result":null}
V/sl4a.JsonRpcServer$ConnectionThread:82( 9402): Server thread 94 died.

Original issue reported on code.google.com by damonkoh...@gmail.com on 19 Sep 2010 at 5:51

GoogleCodeExporter commented 9 years ago
Cannot reproduce at head. I believe this issue is resolved. Please reopen if 
you have the problem again.

Original comment by damonkoh...@gmail.com on 11 Nov 2010 at 2:09