コード例 #1
1
 /** 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());
   }
 }
コード例 #2
1
 /** @see MessageListener#onMessageCancelled(Destination, int) */
 public void onMessageCancelled(final Destination destination, final int cancelledMessageId) {
   alertDialog("CANCELLED - " + destination.getUri().toString() + " id: " + cancelledMessageId);
 }