android - How to put delay for out going calls -
is there option put delay make call in android?
once user click call button below method called
public class dialbroadcastreceiver extends broadcastreceiver { @override public void onreceive(context context, intent intent) { log.v("dilebroadcastreceiver","in onreceive()"); if (intent.getaction().equals(intent.action_new_outgoing_call)) { string number = intent.getstringextra(intent.extra_phone_number); log.v("dialbroadcast receiver","number is: "+number); } } }
then opponent user receiving call.
what need when user clicks call button should put delay second or 2 second, there option that.
i new developer, can please me.
try { //set time in mili thread.sleep(3000); }catch (exception e){ e.printstacktrace(); }
or
new handler().postdelayed(new runnable() { @override public void run() { //do } }, 3000//time in milisecond );
Comments
Post a Comment