Please read the Intent docs. You need to specify an intent-filter that matches the intent being broadcast. For example, PACKAGE_ADDED broadcast has the scheme "package:". Also, a number of the actions you have here are not broadcasts, such as VIEW.
On Mon, Jan 12, 2009 at 2:08 AM, syuta <[email protected]> wrote: > > Hi Everyone, > > I created IntentReceiver(extends BroadcastReceiver) > for catch Broadcast Actions. > > Only this is done in IntentReceiver class. > @Override > public void onReceive(Context context, Intent intent) { > Toast.makeText(context,intent.getAction(),Toast.LENGTH_SHORT).show(); > } > > and, AndroidManifest.xml > > <receiver android:name=".IntentReceiver"> > <intent-filter> > <category android:name="android.intent.category.DEFAULT" /> > <action android:name="android.intent.action.WALLPAPER_CHANGED" /> > <action android:name="android.intent.action.BOOT_COMPLETED" /> > <action android:name="android.intent.action.VIEW" /> > <action android:name="android.intent.action.AIRPLANE_MODE" /> > <action android:name="android.intent.action.BATTERY_CHANGED" /> > <action android:name="android.intent.action.CAMERA_BUTTON" /> > <action android:name="android.intent.action.CLOSE_SYSTEM_DIALOGS" /> > <action android:name="aandroid.intent.action.CONFIGURATION_CHANGED" /> > <action android:name="android.intent.action.DATE_CHANGED" /> > <action android:name="android.intent.action.PACKAGE_ADDED" /> > <action android:name="android.intent.action.PACKAGE_CHANGED" /> > <action android:name="android.intent.action.PACKAGE_INSTALL" /> > <action android:name="android.intent.action.PACKAGE_REMOVED" /> > <action android:name="android.intent.action.PACKAGE_RESTARTED" /> > <action android:name="android.intent.action.REBOOT" /> > <action android:name="android.intent.action.SCREEN_OFF" /> > <action android:name="android.intent.action.SCREEN_ON" /> > <action android:name="android.intent.action.UID_REMOVED" /> > </intent-filter> > </receiver> > > > The application is installed int the [dev phone 1], > > and, > > 1.some application uninstalled from [settings-applications-Manage > Applications]. > Then, > Toast shows [android.intent.action.UID_REMOVED]. > I thought,Toast shows [android.intent.action.PACKAGE_REMOVED]. > why? > Is this correct? > > 2.appication install from AndroidMarket > I thought,Toast shows [ndroid.intent.action.PACKAGE_ADDED] > or > [android.intent.action.PACKAGE_INSTALL]. > > but,Nothing was displayed. > Is this correct? > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

