java - Send raw RIL request -
i know if has example of how can send ril request android using ril constants
ril_request_get_sim_status ril_request_dial ril_request_send_sms
and how results request using android java base api.
methods can found in ril.java
example send ril request:
import com.android.internal.telephony.phonefactory; import com.android.internal.telephony.phonebase; phonebase phone = (phonebase)phonefactory.getdefaultphone();//or phonefactory.getphone(sim_id); //ril_request_get_sim_status phone.mci.geticccardstatus(result); //ril_request_dial phone.mci.dial (address, clirmode, result); //ril_request_send_sms phone.mci.sendsms (smscpdu, pdu, result);
the result message binded handler before calling above method, , once complete corresponding result message sent handler, result.obj. samples decode result can found in following files,
ril_request_get_sim_status : uicccontroller.java
ril_request_dial: gsmcalltracker.java
ril_request_send_sms: gsmsmsdispatcher.java
Comments
Post a Comment