public static BroadcastReceiver registerDataLogReceiver ( final Context context , final PebbleDataLogReceiver receiver ) { IntentFilter filter = new IntentFilter ( ) ; filter . addAction ( INTENT_DL_RECEIVE_DATA ) ; filter . addAction ( INTENT_DL_FINISH_SESSION ) ; context . registerReceiver ( receiver , filter ) ; return receiver ; }
A convenience function to assist in programatically registering a broadcast receiver for the DATA_AVAILABLE intent .