Broadcast Intent 一覧
Broadcast Intent(ブロードキャスト・インテント):
この Intent は複数の Activity に通知される。例えば、バッテリー残量に変化があった場合、Android は Broadcast Intent を用いて複数の Activity に対しバッテリー残量変化を通知する。各 Activity はこの通知を契機に処理することができるのである。
http://developer.android.com/reference/android/content/Intent.html
# Standard Broadcast Actions
Broadcast Intent | Details |
---|---|
ACTION_AIRPLANE_MODE_CHANGED | The user has switched the phone into or out of Airplane Mode. One or more radios have been turned off or on. 端末を飛行モードに変更した/通常モードに戻した |
ACTION_BATTERY_CHANGED | The charging state, or charge level of the battery has changed. バッテリー残量が変わった |
ACTION_BATTERY_LOW | Indicates low battery condition on the device. This broadcast corresponds to the "Low battery warning" system dialog. バッテリー残量が少ない |
ACTION_BATTERY_OKAY | Indicates the battery is now okay after being low. This will be sent after ACTION_BATTERY_LOW once the battery has gone back up to an okay state. バッテリー残量が回復した |
ACTION_BOOT_COMPLETED | This is broadcast once, after the system has finished booting. It can be used to perform application-specific initialization, such as installing alarms. You must hold the RECEIVE_BOOT_COMPLETED permission in order to receive this broadcast. システムの起動が完了した |
ACTION_CAMERA_BUTTON | The "Camera Button" was pressed. Includes a single extra field, EXTRA_KEY_EVENT, containing the key event that caused the broadcast. カメラボタンが押下された |
ACTION_CLOSE_SYSTEM_DIAlOGS | This is broadcast when a user action should request a temporary system dialog to dismiss. Some examples of temporary system dialogs are the notification window-shade and the recent tasks dialog. システムダイアログを一時的に閉じた |
ACTION_CONFIGURATION_CHANGED | The current device Configuration (orientation, locale, etc) has changed. When such a change happens, the UIs (view hierarchy) will need to be rebuilt based on this new information; for the most part, applications don't need to worry about this, because the system will take care of stopping and restarting the application to make sure it sees the new changes. Some system code that can not be restarted will need to watch for this action and handle it appropriately. オリエンテーションやロケールなどの端末設定値が変更された |
ACTION_DATE_CHANGED | The date has changed. 携帯電話の日付が変更された |
ACTION_DEVICE_STORAGE_LOW | Indicates low memory condition on the device. 内蔵メモリ容量が少なくなった |
ACTION_DEVICE_STORAGE_OK | Indicates low memory condition on the device no longer exists. 内蔵メモリ容量不足が解消された |
ACTION_GTALK_SERVICE_CONNECTED | An GTalk connection has been established. Gtalk のセッション確立に成功した |
ACTION_GTALK_SERVICE_DISCONNECTED | An GTalk connection has been disconnected. Gtalk のセッションが切断された |
ACTION_HEADSET_PLUG | Wired Headset plugged in or unplugged. ヘッドセットが接続された/取り外された |
ACTION_INPUT_METHOD_CHANGED | An input method has been changed. |
ACTION_MANAGE_PACKAGE_STORAGE | Indicates low memory condition notification acknowledged by user and package management should be started. This is triggered by the user from the ACTION_DEVICE_STORAGE_LOW notification. ユーザにより内臓メモリ不足が通達され、パッケージマネージャを起動する |
ACTION_MEDIA_BAD_REMOVAL | External media was removed from SD card slot, but mount point was not unmounted. The path to the mount point for the removed media is contained in the Intent.mData field. |
ACTION_MEDIA_BUTTON | The "Media Button" was pressed. Includes a single extra field, EXTRA_KEY_EVENT, containing the key event that caused the broadcast. メディアボタンが押下された |
ACTION_MEDIA_CHECKING | External media is present, and being disk-checked The path to the mount point for the checking media is contained in the Intent.mData field. |
ACTION_MEDIA_EJECT | User has expressed the desire to remove the external storage media. Applications should close all files they have open within the mount point when they receive this intent. The path to the mount point for the media to be ejected is contained in the Intent.mData field. 外部メモリ排出処理が実行された |
ACTION_MEDIA_MOUNTED | External media is present and mounted at its mount point. The path to the mount point for the removed media is contained in the Intent.mData field. The Intent contains an extra with name "read-only" and Boolean value to indicate if the media was mounted read only. 外部メモリのマウントに成功した |
ACTION_MEDIA_NOFS | External media is present, but is using an incompatible fs (or is blank) The path to the mount point for the checking media is contained in the Intent.mData field. |
ACTION_MEDIA_REMOVED | External media has been removed. The path to the mount point for the removed media is contained in the Intent.mData field. 外部メモリが取り除かれた |
ACTION_MEDIA_SCANNER_FINISHED | The media scanner has finished scanning a directory. The path to the scanned directory is contained in the Intent.mData field. メディアスキャンが終了した |
ACTION_MEDIA_SCANNER_SCAN_FILE | Request the media scanner to scan a file and add it to the media database. The path to the file is contained in the Intent.mData field. メディアスキャナにファイルスキャンを要求し、そのスキャンしたファイルをメディアデータベースに追加する |
ACTION_MEDIA_SCANNER_STARTED | The media scanner has started scanning a directory. The path to the directory being scanned is contained in the Intent.mData field. メディアスキャンが開始された |
ACTION_MEDIA_SHARED | External media is unmounted because it is being shared via USB mass storage. The path to the mount point for the removed media is contained in the Intent.mData field. USB 接続で共有されているため外部メモリをアンマウントした |
ACTION_MEDIA_UNMOUNTABLE | External media is present but cannot be mounted. The path to the mount point for the removed media is contained in the Intent.mData field. 外部メモリは認識しているが、マウントできない |
ACTION_MEDIA_UNMOUNTED | External media is present, but not mounted at its mount point. The path to the mount point for the removed media is contained in the Intent.mData field. SD カードが検出されたがマウントされていない |
ACTION_NEW_OUTGOING_CALL | An outgoing call is about to be placed. 電話を掛ける |
ACTION_PACKAGE_ADDED | A new application package has been installed on the device. The data contains the name of the package. Note that the newly installed package does not receive this broadcast. 端末に新しいパッケージがインストールされた |
ACTION_PACKAGE_CHANGED | An existing application package has been changed (e.g. a component has been enabled or disabled. The data contains the name of the package. 既存のパッケージが変更された |
ACTION_PACKAGE_DATA_CLEARED | The user has cleared the data of a package. This should be preceded by ACTION_PACKAGE_RESTARTED, after which all of its persistent data is erased and this broadcast sent. Note that the cleared package does not receive this broadcast. The data contains the name of the package. |
ACTION_PACKAGE_INSTALL | Trigger the download and eventual installation of a package. パッケージのダウンロードとインストールを開始する |
ACTION_PACKAGE_REMOVED | An existing application package has been removed from the device. The data contains the name of the package. The package that is being installed does not receive this Intent. パッケージが削除された |
ACTION_PACKAGE_REPLACED | A new version of an application package has been installed, replacing an existing version that was previously installed. The data contains the name of the package. |
ACTION_PACKAGE_RESTARTED | The user has restarted a package, and all of its processes have been killed. All runtime state associated with it (processes, alarms, notifications, etc) should be removed. Note that the restarted package does not receive this broadcast. The data contains the name of the package. ユーザがパッケージをリスタートした |
ACTION_POWER_CONNECTED | External power has been connected to the device. This is intended for applications that wish to register specifically to this notification. Unlike ACTION_BATTERY_CHANGED, applications will be woken for this and so do not have to stay active to receive this notification. This action can be used to implement actions that wait until power is available to trigger. |
ACTION_POWER_DISCONNECTED | External power has been removed from the device. This is intended for applications that wish to register specifically to this notification. Unlike ACTION_BATTERY_CHANGED, applications will be woken for this and so do not have to stay active to receive this notification. This action can be used to implement actions that wait until power is available to trigger. |
ACTION_PROVIDER_CHANGED | Some content providers have parts of their namespace where they publish new events or items that the user may be especially interested in. For these things, they may broadcast this action when the set of interesting items change. For example, GmailProvider sends this notification when the set of unread mail in the inbox changes. The data of the intent identifies which part of which provider changed. When queried through the content resolver, the data URI will return the data set in question. 端末がコンテンツプロバイダからの通知を受信した |
ACTION_REBOOT | Have the device reboot. This is only for use by system code. 端末を再起動する |
ACTION_SCREEN_OFF | Sent after the screen turns off. 画面の電源が切られた |
ACTION_SCREEN_ON | Sent after the screen turns on. 画面の電源が入れられた |
ACTION_SHUTDOWN | Device is shutting down. This is broadcast when the device is being shut down (completely turned off, not sleeping). Once the broadcast is complete, the final shutdown will proceed and all unsaved data lost. Apps will not normally need to handle this, since the forground activity will be paused as well. |
ACTION_TIMEZONE_CHANGED | The timezone has changed. 端末のタイムゾーンが変更された |
ACTION_TIME_CHANGED | The time was set. 端末の時刻が設定された |
ACTION_TIME_TICK | The current time has changed. Sent every minute. You can not receive this through components declared in manifests, only by exlicitly registering for it with Context.registerReceiver(). 現在時刻が変更された |
ACTION_UID_REMOVED | A user ID has been removed from the system. The user ID number is stored in the extra data under EXTRA_UID. システムからユーザーIDが削除された |
ACTION_UMS_CONNECTED | The device has entered USB Mass Storage mode. This is used mainly for the USB Settings panel. Apps should listen for ACTION_MEDIA_MOUNTED and ACTION_MEDIA_UNMOUNTED broadcasts to be notified when the SD card file system is mounted or unmounted. 端末が USB 機器として接続された |
ACTION_UMS_DISCONECTED | The device has exited USB Mass Storage mode. This is used mainly for the USB Settings panel. Apps should listen for ACTION_MEDIA_MOUNTED and ACTION_MEDIA_UNMOUNTED broadcasts to be notified when the SD card file system is mounted or unmounted. 端末の USB 接続が解除された |
ACTION_USER_PRESENT | Sent when the user is present after device wakes up (e.g when the keyguard is gone). |
ACTION_WALLPAPER_CHANGED | The current system wallpaper has changed. See getWallpaper() for retrieving the new wallpaper. 端末の壁紙が変更された |