I am creating a conference manager application .I am Using the PhonenumberUtils.PAUSE() for time delay during the call.It is only working for few seconds.I want to make it pause for more seconds according to my wish.How can i do that can anyone help me?
String telUri = "tel:" + 121 + PhoneNumberUtils.PAUSE + 4
+ PhoneNumberUtils.PAUSE + 6 ;
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(telUri));
startActivity(callIntent);
Now the call is going to 121 and without any time delay it is executing the number 4 and same as 6 .I want to give time delay for 121 and 4 .How can i give?
the PhoneNumberUtils.PAUSE will wait for 2 seconds ,and the value for PhoneNumberUtils.PAUSe is ",".
ProfileDo profile = adapter.getProfile(profileid);
String call = "tel:";
for (StepDO step : profile.getSteps()) {
//Encoding the value if it contains any symbol like #
String value = URLEncoder.encode(step.getValue());
int delay = step.getDelay();
String pausesStr = "";
for (int i = 0; i < delay/2; i++) {
pausesStr += PhoneNumberUtils.PAUSE;
}
call += value + pausesStr;
System.out.println(""+call);
}
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(call));
startActivity(callIntent);
}
}