Simulate the click action in a phone call in Android

I am new and developing an Android app to solve the following problem.

Sometimes I want to get some information on a call, here is the process.

  • call the number and I will hear a voice prompt
  • press 1 to select a language.

I wonder if there is a library that can be used to simulate the action of a click during a call, so I can just enter the phone number, and then the application will automatically select the language for me.

+4
source share
2 answers

View.performClick() exists, but the real problem is that you cannot interact with this activity (as far as I know).

+1
source

Source: https://habr.com/ru/post/1441496/


All Articles