public static void enableReceiver(Context context) {
        IntentFilter filter = getFilter();
        sReceiver = new IdleReceiver();
        context.getApplicationContext().registerReceiver(sReceiver, filter);
    }
public static void enableReceiver(Context context) {
        IntentFilter filter = getFilter();
        sReceiver = new IdleReceiver();
        context.getApplicationContext().registerReceiver(sReceiver, filter);
    }
public static void enableReceiver ( Context context ) { IntentFilter filter = getFilter ( ) ; sReceiver = new IdleReceiver ( ) ; context . getApplicationContext ( ) . registerReceiver ( sReceiver , filter ) ; }
Call this as soon as we get a chance, it will be unregistered whenever our app is killed.
Call this as soon as we get a chance it will be unregistered whenever our app is killed .