There are correct solution for task?
On incoming call hide defalut answer/reject activity and show my activity with two buttons “Answer” (answer on call) and “Reject” (reject call)
on 2.3.3 I9001 i use
-
Service with TelephonyManager.listen for intercept call
-
Show my activity (with 1 second delay) with flags FLAG_ACTIVITY_NEW_TASK Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
-
On answer i use emulate KEYCODE_HEADSETHOOK
-
On regect i use ITelephony hack
But this not work on 4.0.4.
a) my activity showed but hide by default
b) may be there are correct way for all version
?
1 Answer