FileDocCategorySizeDatePackage
BootReceiver.javaAPI DocAndroid 5.1 API1671Thu Mar 12 22:22:42 GMT 2015com.android.systemui

BootReceiver

public class BootReceiver extends android.content.BroadcastReceiver
Performs a number of miscellaneous, non-system-critical actions after the system has finished booting.

Fields Summary
private static final String
TAG
Constructors Summary
Methods Summary
public voidonReceive(android.content.Context context, android.content.Intent intent)


    
           
        try {
            // Start the load average overlay, if activated
            ContentResolver res = context.getContentResolver();
            if (Settings.Global.getInt(res, Settings.Global.SHOW_PROCESSES, 0) != 0) {
                Intent loadavg = new Intent(context, com.android.systemui.LoadAverageService.class);
                context.startService(loadavg);
            }
        } catch (Exception e) {
            Log.e(TAG, "Can't start load average service", e);
        }