Home | History | Annotate | Download | only in service

Lines Matching refs:attraction

35 import com.example.android.xyztouristattractions.common.Attraction;
308 List<Attraction> attractions = ATTRACTIONS.get(cityId);
315 // The first (closest) tourist attraction
316 Attraction attraction = attractions.get(0);
322 // Pull down the tourist attraction images from the network and store
340 DetailActivity.getLaunchIntent(this, attraction.name),
351 .bigPicture(bitmaps.get(attraction.name))
352 .setBigContentTitle(attraction.name)
356 .setContentTitle(attraction.name)
371 // Calculate the distance from current location to tourist attraction
395 * @param attractions list of attraction data to transfer over
397 private void sendDataToWearable(List<Attraction> attractions) {
414 Attraction attraction = attractions.get(i);
420 // Fetch and resize attraction image bitmap
422 .load(attraction.imageUrl)
429 .load(attraction.secondaryImageUrl)
443 Utils.getLocation(this), attraction.location);
445 attractionData.putString(Constants.EXTRA_TITLE, attraction.name);
446 attractionData.putString(Constants.EXTRA_DESCRIPTION, attraction.description);
448 Constants.EXTRA_LOCATION_LAT, attraction.location.latitude);
450 Constants.EXTRA_LOCATION_LNG, attraction.location.longitude);
452 attractionData.putString(Constants.EXTRA_CITY, attraction.city);