`
叶里的猫
  • 浏览: 20536 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE

阅读更多
String android.content.Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE = "android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"

Broadcast Action: Resources for a set of packages (which were previously unavailable) are currently available since the media on which they exist is available. The extra data EXTRA_CHANGED_PACKAGE_LIST contains a list of packages whose availability changed. The extra data EXTRA_CHANGED_UID_LIST contains a list of uids of packages whose availability changed. Note that the packages in this list do not receive this broadcast. The specified set of packages are now available on the system.

Includes the following extras:

    * EXTRA_CHANGED_PACKAGE_LIST is the set of packages whose resources(were previously unavailable) are currently available. EXTRA_CHANGED_UID_LIST is the set of uids of the packages whose resources(were previously unavailable) are currently available.

This is a protected intent that can only be sent by the system

------------------

这个action从2.2版开始支持

当SD卡从不可用到可用且SD卡中之前安装有应用,则系统发出这个广播,
注意从SD卡中新加入的应用不会接收到这个广播。
这个广播的intent中包括如下数据:
1.从SD卡中新加入的应用包名
2.从SD卡中新加入的应用ID

这种广播只能由系统发出。
分享到:
评论

相关推荐

    Andriod接收广播的类

    恢复已经停止的更新下载。 'android.server.checkin.FOTA_RESTART' 通过 OTA 下载并安装操作系统更新。 'android.server.checkin.FOTA_UPDATE' 用户按下了'Media Button'。...'android.intent.action.PACKAGE_ADDED'

    android.intent.action.TIME_TICK

    接收系统的时间流逝的广播,屏幕开启关闭的广播,电量改变的广播。这些广播在清单文件里注册时,看不到效果。在这个例子中通过在一个服务里面用代码注册的方式,成功接收了这些广播。

    Android 静默安装和静默卸载(SilentInstaller)

    Intent intent = new Intent("android.intent.action.SILENT_PACKAGE_INSTALL"); intent.putExtra("silent_install_file", "/sdcard/Helloworld.apk"); intent.putExtra("silent_install_auto_start", true);//...

    android 监听卸载那些事儿

    android.intent.action.PACKAGE_REMOVED和android.intent.action.PACKAGE_ADDED 可以监听别的应用被安装卸载,但不能监听自己被卸载啊。 监听自己被卸载通过前辈们探索发现,只能通过监听系统卸载log如:act=...

    Android 屏幕唤醒 + 屏幕解锁 + 开机服务监听(android.intent.action.BOOT-COMPLET)

    Android 屏幕唤醒 + 屏幕解锁 + 开机服务监听(android.intent.action.BOOT_COMPLET)添加权限:{//开机监听<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/><uses-permission android...

    android 系统中的几乎所有广播接收者

    BATTERY_CHANGED_ACTION 充电状态,或者电池的电量发生变化 "android.intent.action.BATTERY_CHANGED" BOOT_COMPLETED_ACTION 在系统启动后,这个动作被广播一次(只有一次) "android.intent.action.BOOT_COMPLETED" ...

    Intent.action_大全

    Android Intent Action

    android Intent实例

    returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri); 2,地图 Uri mapUri = Uri.parse("geo:38.899533,-77.036476"); returnIt = new Intent(Intent.ACTION_VIEW, mapUri); 3,调拨打电话界面 Uri telUri = Uri....

    android 8.1设置添加Ethernet功能选项

    <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.VOICE_LAUNCH" /> <category android:...

    android Action call 拨打电话 Intent.ACTION.CALL

    android Action call 拨打电话 Intent.ACTION.CALL

    Android中获取系统图片示例

    获取系统图片的简单示例,使用Intent.ACTION_GET_CONTENT 和 MediaStore两种方式获取图片以及其真正的系统所在的位置

    Android利用Intent.ACTION_SEND进行分享

    其实在系统的文件管理器中,这应该是我们常用的功能(包括文件的打开Intent.ACTION_VIEW)。 下面列出一个简单的分享方式 Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND); ...

    Android 广播大全 Intent Action 事件.

    Android 广播大全 Intent Action 事件.

    Android监听电池状态实例代码

    如果要监听电池的状态改变,需要动态注册:android.intent.action.BATTERY_CHANGED,收到Action后可以根据对应的Key获取你需要的信息,更详细信息可以参考以下例子中的BatteryChangedReceiver类 具体代码如下所示: ...

    ContentProvider

    <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <provider android:name=".provider" android:authorities=...

    Android上的文本数据短信(发送接受拦截)

    android短信操作,实现发送,接收与拦截

    Android功能代码

    intent.setAction("android.intent.action.VIEW"); startActivityForResult( intent , 0); 3.打开壁纸设置 Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER); startActivity(intent); 4.打开拨号界面 ...

    实现开机自启动服务

    开机启动后,当系统发出android.intent.action.BOOT_COMPLETED广播时,接收该广播,并自动启动一个后台service。

Global site tag (gtag.js) - Google Analytics