daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <receiver android:name=".BootReceiver" android:enabled="true">
  2.     <intent-filter>    
  3.         <action android:name="android.intent.action.BOOT_COMPLETED"/>
  4.     </intent-filter>
  5. </receiver>
  6.    
  7. Intent intent = new Intent(Intent.ACTION_BOOT_COMPLETED);
  8. List<ResolveInfo> resolveInfoList = mPackageManager.queryBroadcastReceivers(intent, PackageManager.GET_RESOLVED_FILTER);
  9.    
  10. PackageInfo packageInfo = mPackageManager.getPackageInfo(applicationInfo.packageName, PackageManager.GET_RECEIVERS);
  11. ActivityInfo[] receivers = packageInfo.receivers;
  12.    
  13. List<ResolveInfo> resolveInfoList = mPackageManager.queryBroadcastReceivers(intent, PackageManager.GET_DISABLED_COMPONENTS);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top