I want to start an activity on outgoing call , and as activity starts default calling screen should move to background(Minimize) and call and activity should run parallel , as i want to display certain data while call in process Which will changes!
Asked
Active
Viewed 895 times
-3
-
Have you tried anything? – Howli Jun 05 '14 at 07:10
-
i have used broadcast reciver and have set priority of intent filter to 50 , after doing this when i tried to call my activity is coming to front beacuse of itz higher priority and calling screen going to backgound .....but call is not made , i want call to be continue along with my activity at front! – Ammi Jun 05 '14 at 07:35
1 Answers
1
You can use BroadcastReciever
for capturing Outgoing Call event.
Try android-broadcastreceiver-tutorial-detect-outgoing-phone-call-event & BroadcastReceive links, it will help you.

Sanket Shah
- 4,352
- 3
- 21
- 41
-
-
i have use broadcast receiver and it'z working fine but what i want to do minimize the default calling screen and need to show my activity on the screen!! – Ammi Jun 05 '14 at 07:26
-
try to open your activity `onRecieve()` method of `BroadcastReciever`. – Sanket Shah Jun 05 '14 at 07:27
-
done with that, activity is getting start but calling screen hiding that activity , after ending call i am able to see that acitivity ! – Ammi Jun 05 '14 at 07:40
-
Try to start activity with this 'Intent intent = new Intent(context, Your_activity.class); intent.addFlags(intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent);' – Sanket Shah Jun 05 '14 at 08:00
-
Intent i=new Intent(context,CallActivity.class); i.putExtras(intent); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); have done this only – Ammi Jun 05 '14 at 08:26
-
i have used same code , it;z true my acitvity is come to front and calling is going back , but you should notice one thing call is not getting connect as calling activity is getting pause that time ! – Ammi Jun 05 '14 at 09:37
-
i think u cant stop call activity. u r asking about minimize that activity so i have answered your que. – Sanket Shah Jun 05 '14 at 10:04
-
1http://stackoverflow.com/questions/22401709/custom-incoming-outgoing-call-screen-in-android last answer to link made my work :) thanks btw . now my activity is coming to front and call is also getting connect :) – Ammi Jun 06 '14 at 02:43