Intent Actions
Intent 动作接口,定义了 Android Intent 中常用的 ACTION 常量。 包含了启动 Activity 的标准动作以及系统标准广播动作。
Author
M8Test, [email protected], https://m8test.com
Functions
广播动作:飞行模式状态已更改。 对应: android.content.Intent.ACTION_AIRPLANE_MODE_CHANGED
广播动作:电池电量状态已更改(包含电量、健康度等信息)。不能在 Manifest 中静态注册。 对应: android.content.Intent.ACTION_BATTERY_CHANGED
广播动作:电池电量低。 对应: android.content.Intent.ACTION_BATTERY_LOW
广播动作:电池电量已恢复正常。 对应: android.content.Intent.ACTION_BATTERY_OKAY
广播动作:系统已完成启动。需要在 Manifest 中持有 RECEIVE_BOOT_COMPLETED 权限。 对应: android.content.Intent.ACTION_BOOT_COMPLETED
广播动作:关闭系统对话框(如通知栏、近期任务列表)。 对应: android.content.Intent.ACTION_CLOSE_SYSTEM_DIALOGS
Activity 动作:允许用户选择特定类型的数据并返回(例如选择文件)。 对应: android.content.Intent.ACTION_GET_CONTENT
Activity 动作:启动安装程序以安装新的应用程序包。 对应: android.content.Intent.ACTION_INSTALL_PACKAGE
广播动作:语言环境(Locale)已更改。 对应: android.content.Intent.ACTION_LOCALE_CHANGED
广播动作:外置媒体(SD卡)已挂载。 对应: android.content.Intent.ACTION_MEDIA_MOUNTED
广播动作:外置媒体(SD卡)被移除。 对应: android.content.Intent.ACTION_MEDIA_REMOVED
广播动作:设备上安装了一个新的应用程序包。 对应: android.content.Intent.ACTION_PACKAGE_ADDED
广播动作:用户清理了数据并重新启动了应用程序包。 对应: android.content.Intent.ACTION_PACKAGE_DATA_CLEARED
广播动作:设备上现有的应用程序包已被移除。 对应: android.content.Intent.ACTION_PACKAGE_REMOVED
广播动作:现有的应用程序包已被替换为新版本。 对应: android.content.Intent.ACTION_PACKAGE_REPLACED
广播动作:已连接外部电源。 对应: android.content.Intent.ACTION_POWER_CONNECTED
广播动作:已断开外部电源。 对应: android.content.Intent.ACTION_POWER_DISCONNECTED
Activity 动作:请求用户授权特定的权限。 对应: android.content.Intent.ACTION_REQUEST_PERMISSION (API 33+) / 常用字符串
广播动作:屏幕已关闭。 对应: android.content.Intent.ACTION_SCREEN_OFF
广播动作:屏幕已开启。 对应: android.content.Intent.ACTION_SCREEN_ON
Activity 动作:投递多个数据(例如多张图片)。 对应: android.content.Intent.ACTION_SEND_MULTIPLE
Activity 动作:显示系统设置。 (注:更具体的设置通常在 android.provider.Settings 中) 对应: android.content.Intent.ACTION_SETTINGS
广播动作:设备已关闭(关机)。 对应: android.content.Intent.ACTION_SHUTDOWN
广播动作:时间被重新设置。 对应: android.content.Intent.ACTION_TIME_CHANGED
广播动作:当前时间已更改(每分钟发送一次)。不能在 Manifest 中静态注册。 对应: android.content.Intent.ACTION_TIME_TICK
广播动作:时区已更改。 对应: android.content.Intent.ACTION_TIMEZONE_CHANGED
广播动作:用户解锁了设备。 对应: android.content.Intent.ACTION_USER_PRESENT
Activity 动作:执行 Web 搜索。 对应: android.content.Intent.ACTION_WEB_SEARCH