Here to. Exact same problem. Tested on HTC Desire 2.2 (not working). It seems like it ignoring the resultData from the broadcastreceiver. Earlier tested on HTC Hero build 2.73.405.x (android 1.5) where the "Dialer" application doesn't even send a broadcast!! Current build on HTC Hero (android 2.1) works perfectly.
I'm getting a bit desperate for a good workaround.... ./tobias On 18 Aug, 21:31, Denis Souza <[email protected]> wrote: > I'm getting the exact same problem. > I have an app that changes the number being dialed. > It works on everything except the HTC Desire with Android 2.2. Works > with Desire on 2.1 and with any other device I tested with 2.2. There > are reports from several of my users using 2.2 devices and it works on > all of them except for the HTC Desire. > > I'm think it might be a bug introduced by HTC. > > If you find a workaround let me know.. I'm still looking... > > Denis Souza > > On Aug 18, 10:20 am, Nicolas Zerr <[email protected]> wrote: > > > > > 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

