Examples of Notification


Examples of android.app.Notification

        try {
            // create  manager
            manager = (NotificationManager) context.getSystemService( Context.NOTIFICATION_SERVICE );

            // create notificaion, flags and intent
            Notification notification = new Notification( R.drawable.uploader, null, System.currentTimeMillis() );
            notification.flags |= Notification.FLAG_ONGOING_EVENT;
            Intent notificationIntent = new Intent( context, MiltonPhotoUploader.class );
            PendingIntent contentIntent = PendingIntent.getActivity( context, 0, notificationIntent, 0 );

            // add event info to notification
            notification.setLatestEventInfo( context, context.getString( R.string.app_name ), context.getString( R.string.app_name ) + " is running.", contentIntent );

            // add notification to manager so it shows up for the user
            manager.notify( APP_NOTIFICAION, notification );

            // set enabled to true
View Full Code Here

Examples of at.molindo.notify.model.Notification

    _confirmationListeners.removeAll(Arrays.asList(listener));
  }

  @Override
  public String confirm(String key) throws ConfirmationException {
    Notification notification = _notificationDAO.getByConfirmationKey(key);
    if (notification == null) {
      return null;
    }

    if (System.currentTimeMillis() - notification.getDate().getTime() > _confirmationMaxAgeMs) {
      return null;
    }

    for (IConfirmationListener l : _confirmationListeners) {
      String redirect = l.confirm(notification);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.management.Notification

          // Manda uma notificação de mudança de atributo
          NotificationManager notificationManager = Beans.getReference(NotificationManager.class);
          Class<? extends Object> attributeType = newValue != null ? newValue.getClass() : null;

          Notification notification = new DefaultNotification( new AttributeChangeMessage(
              bundle.getString("management-notification-attribute-changed", propertyName, managedType.getType().getCanonicalName())
              , propertyName
              , attributeType
              , oldValue
              , newValue) );
View Full Code Here

Examples of com.akdeniz.googleplaycrawler.GooglePlay.Notification

      if (msg instanceof DataMessageStanza) {
    for (AppData appData : ((DataMessageStanza) msg).getAppdataList()) {
        if (appData.getKey().equals("NOTIFICATION_PAYLOAD")) {
      byte[] bs = Base64.decode(appData.getValue(), Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP);
      Notification notification = Notification.parseFrom(bs);

      // TODO not every notification is for download! filter
      // by type!
      notificationListener.notificationReceived(notification);
        }
View Full Code Here

Examples of com.dotcms.notifications.bean.Notification

                    APILocator.getTimeMachineAPI().startTimeMachine(dhosts, dlangs,inc);

                    try {
                        //Create a new notification to inform the snapshot was created
                        String notificationMessage = LanguageUtil.get( getUser().getLocale(), "TIMEMACHINE-SNAPSHOT-CREATED" );
                        Notification notification = new Notification( notificationMessage, NotificationLevel.INFO, getUser().getUserId() );
                        APILocator.getNotificationAPI().saveNotification( notification );
                    } catch ( Exception e ) {
                        Logger.error( this, "Error creating notification after creation of the Time machine Snapshot.", e );
                    }
View Full Code Here

Examples of com.expositds.ars.domain.user.Notification

    return result;
  }

  @Override
  public Notification updateNotification(Notification notification) {
    Notification result = null;

    NotificationEntity notificationEntity = DozerHelper.map(notification,
        NotificationEntity.class);
    notificationEntity = notificationRepository.merge(notificationEntity);
    result = DozerHelper.map(notificationEntity, Notification.class);
View Full Code Here

Examples of com.intellij.notification.Notification

                notification.expire();
            }
        };

        message = MessageFormat.format(message, args);
        Notification notification = new Notification("Database Navigator", title, message, type);
        Notifications.Bus.notify(notification, project);
    }
View Full Code Here

Examples of com.saasovation.common.notification.Notification

            new ArrayList<Notification>(aStoredEvents.size());

        for (StoredEvent storedEvent : aStoredEvents) {
            DomainEvent domainEvent = storedEvent.toDomainEvent();

            Notification notification =
                new Notification(storedEvent.eventId(), domainEvent);

            notifications.add(notification);
        }

        return notifications;
View Full Code Here

Examples of com.skyline.base.model.Notification

    List<Notification> notifications = jdbcTemplate.query(findNotificationByIdSql, NotificationMapper.getMapper(),
        id);
    if (notifications == null || notifications.size() <= 0) {
      return null;
    } else {
      Notification notification = notifications.get(0);
      //this.deleteNotificationByResource(notification.getOwnerId(),notification.getResourceId(), notification.getType());
      return notification;
    }
  }
View Full Code Here

Examples of com.sun.xml.ws.tx.at.v10.types.Notification

/**
* This is the  class for building WSAT10 Notifications.
*/
public class NotificationBuilderImpl extends NotificationBuilder<Notification> {
    public Notification build() {
        return new Notification();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.