`
hw3com
  • 浏览: 56290 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
社区版块
存档分类
最新评论

android开机启动android.intent.action.BOOT_COMPLETED

阅读更多
android开机启动android.intent.action.BOOT_COMPLETED

遇到一个问题,就是开机启动我只需要第一次,类似于开机向导一样的功能

但是每次开机的时候都会接受这个BOOT_COMPLETED

这样会有一个开机的进程,这种属于资源浪费。

我们可以setComponentEnabledSetting,节约资源。
1
0
分享到:
评论
2 楼 hw3com 2012-10-29  
lerous 写道
对于这个问题
引用
就是开机启动我只需要第一次,类似于开机向导一样的功能

能详细说下,setComponentEnabledSetting
对这个有什么用吗?~


设置了是否处于可用.

具体可以看源码
1 楼 lerous 2012-05-24  
对于这个问题
引用
就是开机启动我只需要第一次,类似于开机向导一样的功能

能详细说下,setComponentEnabledSetting
对这个有什么用吗?~

相关推荐

    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.intent.action.BOOT_COMPLETED广播时,接收该广播,并自动启动一个后台service。

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

    BOOT_COMPLETED_ACTION 在系统启动后,这个动作被广播一次(只有一次) "android.intent.action.BOOT_COMPLETED" CALL_FORWARDING_STATE_CHANGED_ACTION 语音电话的呼叫转移状态已经改变 "android.intent.action.CFF" ...

    Service开机自动启动

    1.首先开机启动后系统会发出一个Standard Broadcast Action,名字叫android.intent.action.BOOT_COMPLETED,这个Action只会发出一次。 2.构造一个IntentReceiver类,重构其抽象方法onReceiveIntent(Context context...

    兼容7.1以上,集成产测+老化+压力重启测试的APP源码

    - //if (action.equals(Intent.ACTION_BOOT_COMPLETED)) { - if(intent.getAction().equals("android.intent.action.REBOOTTEST")) { + if (action.equals(Intent.ACTION_BOOT_COMPLETED)) { + // if(intent.get...

    android开机自启动APP及使用adb命令测试方法

    在android系统运行时,会发出“android.intent.action.BOOT_COMPLETED”这个系统广播,因此我们监听它,并进行打开APP的操作即可。现在大多数的android手机系统都默认禁止第三方安装的APP开机自启动,只有系统APP...

    开机时自动启动Android应用

    如果需要在Android开机时自动启动应用程序,可以通过响应android.intent.action.BOOT_COMPLETED广播消息来实现, Android系统启动结束时,会发出 android.intent.action.BOOT_COMPLETED 消息

    android 开机自动启动服务

    需要注意的是开机启动action Intent.ACTION_BOOT_COMPLETED 需要申请权限:<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> action Intent.ACTION_TIME_TICK只能通过动态注册,不...

    Android学习之Service开机启动

    Android在开机启动后系统会发出一个Standard Broadcast Action,名字叫android.intent.action.BOOT_COMPLETED,这个Action只会发出一次。

    Android开机自动自动app实现demo

    所以app首先需要去注册一个关于接送开机启动的广播(android.intent.action.BOOT_COMPLETED);而且必须要注意的一点是:这个广播必须的静态注册的,不能是动态注册的广播(这种接受开机广播的,一定要静态注册,...

    Android APP:开机自动启动app demo 源码 autorundemo.zip

    Android APP:开机自动启动...Android启动完成会发出一个系统广播 ACTION_BOOT_COMPLETED,字符串常量表示为 “android.intent.action.BOOT_COMPLETED”,我们要做的是用BroadcastReceiver接收这个消息然后启动该程序。

    android应用程序开机启动

    android intent action BOOT COMPLETED" 在接收到这个广播就可以实现开机自启动功能 下面就是一个简单的开机启动的广播receiver">Android应用程序可以实现开机时启动相关应用 如service等 Android系统在开机...

    电视盒子开机自启动wifi热点功能代码,貌似路由器都能省了

    <actionandroid:name="android.intent.action.BOOT_COMPLETED"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"> 在我的电视盒子上试了试 发现 偶尔会出现 开机不自动运行的情况 换...

    android开机自启动原理与实现案例(附源码)

    开机自启动是通过 <intent> <action android:name=”android.intent.action.BOOT_COMPLETED”/> <category android:name=”android.intent.category.HOME”> </intent> 和权限<uses-permission android

    Android 开机自启

    static final String ACTION = "android.intent.action.BOOT_COMPLETED"; @Override public void onReceive(Context context, Intent intent) { if(intent.getAction().equals(ACTION)){ Intent ...

    Android开发之设置开机自动启动的几种方法

    Android开发之设置开机自动启动的... <action android:name=android.intent.action.BOOT_COMPLETED/> <category android:name=android.intent.category.HOME/> </intent> android:name=”.AutoStartReceiver”为处

    Android开机自启动程序详解

    背景知识:当Android启动时,会发出一个系统广播,内容为ACTION_BOOT_COMPLETED,它的字符串常量表示为 android.intent.action.BOOT_COMPLETED。只要在程序中“捕捉”到这个消息,再启动之即可。记住,Android框架说...

    Activity_Hijack.apk

    安全建议:Activity劫持通常依靠注册Receiver响应android.intent.action.BOOT_COMPLETED事件。客户端程序可以在启动前检查Receiver并报警;由于Activity界面劫持攻击通常是将自己的页面附着在客户端之上,因此需要...

    adb1.0.26包含fastboot.exe

    pkg: /data/local/tmp/SogouInput_android_v8.3_sweb.apk Success 而如果状态为 Failure 则表示安装失败,比如: [100%] /data/local/tmp/map-20160831.apk pkg: /data/local/tmp/map-20160831.apk Failure ...

Global site tag (gtag.js) - Google Analytics