Pegar en Runtime eclipse/GeneradoTest3/GeneradoTest3/ANDROID/Componente1_localizacion/Application/src/main/java/com/litierses/Utilidades/UtilityService.java
/**
     * Show the notification. Either the regular notification with wearable features
     * added to enhance, or trigger the full micro app on the wearable.
     *
     * @param cityId The city to trigger the notification for
     * @param microApp If the micro app should be triggered or just enhanced notifications
     */
Show the notification. Either the regular notification with wearable features
added to enhance, or trigger the full micro app on the wearable.

@param cityId The city to trigger the notification for
@param microApp If the micro app should be triggered or just enhanced notifications
Show the notification . Either the regular notification with wearable features added to enhance or trigger the full micro app on the wearable . @param cityId The city to trigger the notification for @param microApp If the micro app should be triggered or just enhanced notifications
private void showNotification(String cityId, boolean microApp) {
        if (microApp) {
        }
        HashMap<String, Bitmap> bitmaps = new HashMap<>();
        /*
        try {
            for (int i = 0; i < count; i++) {
                bitmaps.put(attractions.get(i).name,
                        Glide.with(this)
                                .load(attractions.get(i).imageUrl)
                                .asBitmap()
                                .diskCacheStrategy(DiskCacheStrategy.SOURCE)
                                .into(Constants.WEAR_IMAGE_SIZE, Constants.WEAR_IMAGE_SIZE)
                                .get());
            }
        } catch (InterruptedException | ExecutionException e) {
            Log.e(TAG, "Error fetching image from network: " + e);
          */
        PendingIntent deletePendingIntent =
                PendingIntent.getService(this, 0, getClearRemoteNotificationsIntent(this), 0);
    }
private void showNotification ( String cityId , boolean microApp ) { if ( microApp ) { } HashMap < String , Bitmap > bitmaps = new HashMap < > ( ) ; /*
        try {
            for (int i = 0; i < count; i++) {
                bitmaps.put(attractions.get(i).name,
                        Glide.with(this)
                                .load(attractions.get(i).imageUrl)
                                .asBitmap()
                                .diskCacheStrategy(DiskCacheStrategy.SOURCE)
                                .into(Constants.WEAR_IMAGE_SIZE, Constants.WEAR_IMAGE_SIZE)
                                .get());
            }
        } catch (InterruptedException | ExecutionException e) {
            Log.e(TAG, "Error fetching image from network: " + e);
          */ PendingIntent deletePendingIntent = PendingIntent . getService ( this , 0 , getClearRemoteNotificationsIntent ( this ) , 0 ) ; }
Show the notification.
Show the notification .
//List<Dieta> attractions = GET_DIETAS.get(cityId); // If micro app we first need to transfer some data over // sendDataToWearable(attractions); // The first (closest) tourist attraction //Dieta attraction = attractions.get(0); // Limit attractions to send //int count = attractions.size() > Constants.MAX_ATTRACTIONS ? //        Constants.MAX_ATTRACTIONS : attractions.size(); // Pull down the tourist attraction images from the network and store //     } // The intent to trigger when the notification is tapped //PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, //viewdieta_activity.getLaunchIntent(this, attraction.name), //PendingIntent.FLAG_UPDATE_CURRENT); // The intent to trigger when the notification is dismissed, in this case // we want to clear remote notifications as well // Construct the main notification