/** * Sends message to the URI using FireAndForget destination * * @param uriSenderStr Sender destination URI */ public void sendFireForget(final String uriSenderStr) { FireAndForgetDestination fireForgetDest = null; try { fireForgetDest = (FireAndForgetDestination) DestinationFactory.getSenderDestination(_context.getName(), URI.create(uriSenderStr)); if (fireForgetDest == null) { fireForgetDest = DestinationFactory.createFireAndForgetDestination(_context, URI.create(uriSenderStr)); } final int msgId = fireForgetDest.sendNoResponse(); alertDialog("Message [id:" + msgId + "] has been sent!"); } catch (final Exception e) { alertDialog(e.toString()); } }