Home » Android » repeat phone call with delay of 5 Secs when i click a button [on hold]

repeat phone call with delay of 5 Secs when i click a button [on hold]

Posted by: admin November 1, 2017 Leave a comment

Questions:

so i’m stuck here , i’m building an android app ,
in the app there’s an activity
the user enters a phone number and number of times he want to call that number (it’s actually a code like ” *100# “)
when the user clicks a button
it keeps calling that number for the number of times needed with a delay of 5 secs between the call and the other.
for e.g :
if the entered code is *100# and the number of repeats is 250
as soon as the user clicks the button
the app starts calling *100# , delays 5 Secs , then calls again *100#

looking forward for your help
since i couldn’t put my code here i hosted it in the link below

My code :

Answers: