I cannot load images to my app. I tried with vanilla Android Studio Java and with Picasso, nothing happens:
<ImageView
android:id="@+id/activity_main_icon"
android:layout_width="match_parent"
android:layout_height="308dp"/>
private ImageView icon;
icon = findViewById(R.id.activity_main_icon);
With
URL u = new URL("http://openweathermap.org/img/wn/" + i + ".png");
icon.setImageBitmap(BitmapFactory.decodeStream(u.openConnection().getInputStream()))
or
String iconUrl = "http://openweathermap.org/img/w/" + i + ".png";
Picasso.get().load(iconUrl).into(icon);
I checked the url it is ok.
It may be the declaration of the image in my activity, but I followed the documentation.