-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
hello
please if someone can explain me how i get photo of place
i use this fuction
if (!findPlace(client.getNearbyPlaces(TEST_PLACE_LAT, TEST_PLACE_LNG, MAXIMUM_RADIUS,
MAXIMUM_RESULTS, TypeParam.name("types").value(Types.TYPE_BEAUTY_SALON)), TEST_PLACE_NAME))
///
private boolean findPlace(List places, String name) {
boolean found = false;
feedsList = new ArrayList<>();
for (Place place : places) {
Shop item = new Shop();
item.BusinessName = place.getName();
List<Photo> photos = place.getPhotos();
Log.e("photo", "" + photos.size());
InputStream stream = photo.download().getInputStream();
Bitmap bitmap = BitmapFactory.decodeStream(stream);
// Photo photos = photos.get(new Random().nextInt(photos.size()));
// InputStream stream = photo.download().getInputStream();
// Bitmap bitmap = BitmapFactory.decodeStream(stream);
//
// Log.e("place_img", BitMapToString(bitmap));
feedsList.add(item);
found = true;
}
return found;
and i get list size zero
what i do wrong ?
Metadata
Metadata
Assignees
Labels
No labels