I want to implement Answer call functionality in Android Nougat. The answer call is not supported in Google Nexus 5x.
We tried using the code
Runtime.getRuntime().exec("input keyevent " + Integer.toString(KeyEvent.KEYCODE_HEADSETHOOK));
The answer call is supported in Google Nexus 6 using the above code.
Has anyone worked on the above?
Thanks!