I am using the following code to make a call from an Android application
public class CallActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
call();
}
private void call() {
try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:18004253101"));
startActivity(callIntent);
} catch (ActivityNotFoundException activityException) {
Log.e("dialing-example", "Call failed", activityException);
}
}
}
I have the following requirement.
i>I am calling a number . ii>When the number is connected , I need to pause the call for few seconds. iii>After pausing for few seconds, I need to call the extension number automatically.
Right now , I am able to call the number , but doing R&D on how to pause the call for few seconds when the call is connected & then automatically call the extension.
Kindly help if anyone has already implented something similar.
Warm Regards,
CB