Android Twilio make a call -
i trying create phone call altering android hellomonkey few days using valid userid, when create phone call error "account sid cannot null when making call" code like
public void connect(string phonenumber) { map<string, string> parameters = new hashmap<string, string>(); parameters.put("phonenumber", phonenumber); if (device == null){ log.w("", "failed device == null"); }else{ log.w("", "device != null"); } connection = device.connect(parameters, null /* connectionlistener */); if (connection == null) log.w(tag, "failed create new connection"); }
nothing found null
please help. in advance
instead of using key name "phonenumber", utilize "to" key map parameters.
public void connect(string phonenumber) { map<string, string> parameters = new hashmap<string, string>(); parameters.put("to", phonenumber); connection = device.connect(parameters, null /* connectionlistener */); if (connection == null) log.w(tag, "failed create new connection"); }
twilio client android
android twilio twilio-click-to-call
No comments:
Post a Comment