private Bundle messageToBundle(String messageId,String topic,MqttMessage message){
  Bundle result=new Bundle();
  result.putString(MqttServiceConstants.CALLBACK_MESSAGE_ID,messageId);
  result.putString(MqttServiceConstants.CALLBACK_DESTINATION_NAME,topic);
  result.putParcelable(MqttServiceConstants.CALLBACK_MESSAGE_PARCEL,new ParcelableMqttMessage(message));
  return result;
}

private Bundle messageToBundle ( String messageId , String topic , MqttMessage message ) { Bundle result = new Bundle ( ) ; result . putString ( MqttServiceConstants . CALLBACK_MESSAGE_ID , messageId ) ; result . putString ( MqttServiceConstants . CALLBACK_DESTINATION_NAME , topic ) ; result . putParcelable ( MqttServiceConstants . CALLBACK_MESSAGE_PARCEL , new ParcelableMqttMessage ( message ) ) ; return result ; }
create a bundle containing all relevant data pertaining to a message
