frogggias
frogggias

Reputation: 53

Phone call application

I am trying to create application, which sould work this way:

  1. User dial a phone number (in contact or by dialer)
  2. App will take the number send it to server
  3. Server calls to the user
  4. User answers the call
  5. 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>

Upvotes: 0

Views: 495

Answers (1)

kingston
kingston

Reputation: 11419

To catch an outgoing call please check this

and also this

For auto-answering a call please check.

this

Upvotes: 1

Related Questions