I am trying to create application, which sould work this way:
- User dial a phone number (in contact or by dialer)
- App will take the number send it to server
- Server calls to the user
- User answers the call
- Server calls to the number
I have one problem. I cant handle the Intent from Dailer, using this AndroidManifest.xml
:
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".HomeScreenActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="CallProgressActivity">
<intent-filter>
<action android:name="android.intent.action.DIAL"/>
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>