I am working on an application in which I have to make call from my application using my PHP server.
I have a condition in which, whenever user presses the Green call button of Android Device and after dialing number, I have to give user an option to call from my App or normal SIM. I have done that too. Now I want to get the number which I have dialed on the dialer before switching to the application.
Means if User selects my application to call then I must have number dialed on the phone Dial.
I am using the below code to generate the pop up to use my application for calling. The code is written as Intent filter in my manifest inside the specific activity.
<activity
android:name="com.tv.longdistcall.PlaceLongDistCall"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.CALL_BUTTON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="tel" />
</intent-filter>
</activity>
Please suggest me, how to get the number dialed on the dialer before switching to the activity.