@TargetApi(VERSION_CODES.KITKAT) private void handleSmsReceived(Intent intent){
  if (BuildConfig.DEBUG)   Log.v("SMSReceiver: Intercept SMS");
  Bundle bundle=intent.getExtras();
  if (bundle != null) {
    SmsMessage[] messages=null;
    if (SmsPopupUtils.hasKitKat()) {
      messages=Intents.getMessagesFromIntent(intent);
    }
 else {
      messages=SmsPopupUtils.getMessagesFromIntent(intent);
    }
    if (messages != null) {
      notifyMessageReceived(new SmsMmsMessage(context,messages,System.currentTimeMillis()));
    }
  }
}

@ TargetApi ( VERSION_CODES . KITKAT ) private void handleSmsReceived ( Intent intent ) { if ( BuildConfig . DEBUG ) Log . v ( "SMSReceiver: Intercept SMS" ) ; Bundle bundle = intent . getExtras ( ) ; if ( bundle != null ) { SmsMessage [ ] messages = null ; if ( SmsPopupUtils . hasKitKat ( ) ) { messages = Intents . getMessagesFromIntent ( intent ) ; } else { messages = SmsPopupUtils . getMessagesFromIntent ( intent ) ; } if ( messages != null ) { notifyMessageReceived ( new SmsMmsMessage ( context , messages , System . currentTimeMillis ( ) ) ) ; } } }
handle receiving a sms message
