Regd: support call invocation in Android Nougat

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!

+3
android android-7.0-nougat runtime
Nov 18 '16 at
source share
1 answer

A security patch that is added as an update to many devices above 5.0 from November 2016, after updating devices with these November or later updates, this Runtime method will stop.

+2
Dec 28 '16 at 6:42 on
source share



All Articles