Hi, The following code works fine on GB, but not on HC or ICS (using android simulator in all 3 cases) BcastTestAppActivity and Receiver are running in separate applications.
The onReceive() method is called on GB, but not on HC or ICS. However, the receiver is registered in some way by the system, as queryBroadcastReceivers() returns a resolveInfo pointing to com.mydomain.example.bcastTestReceiver.Receiver. I tried changing android:enabled, android:exported, without success. I must be missing something trivial here, but did not find in docs or groups... Does anybody have a clue ? Thanks Eric bcastTestApp manifest and code : <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mydomain.example.bcastTestApp" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".BcastTestAppActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> public class BcastTestAppActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d("BcastTestAppActivity", "Sending request"); sendBroadcast(new Intent("com.mydomain.example.TEST")); } } bcastTestReceiver manifest and code : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mydomain.example.bcastTestReceiver" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <receiver android:name=".Receiver"> <intent-filter> <action android:name="com.mydomain.example.TEST"/> </intent-filter> </receiver> </application> </manifest> public class Receiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d("Receiver", "Request received"); } } -- 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

