In a broadcast receiver listening to android.intent.action.PHONE_STATE
, call thread.sleep
for 1 second, then start a new activity. This receiver gets called when the phone rings.
When the code enters the new activity, the phone incoming call UI is displayed.
Is it possible to get access to the current view of the incoming call UI, in this other activity task?
onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/*View v = Phone UI Currently Displayed On Device*/
}