/** Destroys destination - should be executed when the app is uninstalled */ public void destroyReceiver(final String uriStr) { try { final Destination dest = DestinationFactory.getReceiverDestination(URI.create(uriStr)); if (dest != null) { dest.destroy(); } } catch (final Exception e) { alertDialog(e.toString()); } }
/** @see MessageListener#onMessageCancelled(Destination, int) */ public void onMessageCancelled(final Destination destination, final int cancelledMessageId) { alertDialog("CANCELLED - " + destination.getUri().toString() + " id: " + cancelledMessageId); }