control calling mode activity in android

124 views Asked by At

i want to make an android app that when device receive a call,my app could reject,answer or minimize call mode and do somethings else in device menu while device is ringing.

for this,i should get handle of default answer app of android.

i know that we can access activities from another applications,like maps

String uri = "geo:"+ latitude + "," + longitude;
startActivity(new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)));

how could i do this?

1

There are 1 answers

1
Aditya On

Create a broadcast on receiving a call and then create IDL interface for getting core Telephony service. Please refer to this and this tutorials.