Hello,
I'm having troubles with intercepting outgoing calls. In fact, it
works perfectly on emulator 2.1 and 2.2, and was running also
perfectly on my HTC Desire when i was in 2.1 version.
Here is some source code :
package com.testcallcatch.test;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class OutgoingCallReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.d("LOOK HERE", "->" + getResultData());
setResultData("0123456789");
Log.d("LOOK HERE", "Setting to 0123456789");
}
}
And the manifest :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.testcallcatch.test" android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".TestCallCatch" android:label="@string/
app_name">
<intent-filter>
<action
android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".OutgoingCallReceiver">
<intent-filter android:priority="2147483646">
<action
android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter>
</receiver>
</application>
<uses-sdk android:minSdkVersion="7" />
<uses-permission
android:name="android.permission.PROCESS_OUTGOING_CALLS"></uses-
permission>
</manifest>
As you can see, it is a very simple sample, but it's not working on
HTC Desire under 2.2 . I suspect this comes from HTC, but I wonder if
there are other devices with this bug.
The app replaces each called number by 01232456789. Don't forget to
uninstall the application once done ;)
So I'm searching people for testing this little app :
- People who have HTC 2.2 device
- People who have other devices that run 2.2 android version.
Maybe someone has already solved this problem?
Thanks a lot in advance,
Nicolas
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en