简体   繁体   中英

Which Broadcast Intent is sent when Android device/OS is started?

以及分别用于监视此事件的Intent过滤器?

You have: ACTION_BOOT_COMPLETED

Intent filter:

<receiver android:name=".BootReceiver">
          <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <category android:name="android.intent.category.HOME" />
         </intent-filter>
   </receiver>

BootReceiver is your broadcastrecevicer class

and permission:

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM