0

I want to write an App which is able to Call a specified Number and after the Call is initiated, send some Numbers.

It is quite easy to call a Number, but it seems that there is no way to send numbers after like 6 seconds.

How can I achieve this? Please give suggestions.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Dropye
  • 214
  • 3
  • 18

1 Answers1

0

After the number you send with your call intent, add three commas ",,," and the numbers you want to send afterwards. For example:

Uri number = Uri.parse("tel:" + "554545454" + ",,," + "32");
Intent dial = new Intent(Intent.ACTION_CALL, number);
startActivity(dial);

A comma "," means 2 sec pause. (https://stackoverflow.com/a/6882906/5250273)

Community
  • 1
  • 1
Ugurcan Yildirim
  • 5,973
  • 3
  • 42
  • 73