I want to implement a call response function in Android Nougat. Answering a call is not supported on Google Nexus 5x.
We tried to use the code
Runtime.getRuntime().exec("input keyevent " + Integer.toString(KeyEvent.KEYCODE_HEADSETHOOK));
Answer calls are supported on Google Nexus 6 using the code above.
Has anyone worked on this?
Thank!
android android-7.0-nougat runtime
User Nov 18 '16 at 9:51 2016-11-18 09:51
source share