Samarth Juneja
Samarth Juneja

Reputation: 896

This code should display the image specified in the link in the image view

Picasso.with(this).load("https://firebasestorage.googleapis.com/v0/b/student-help-portal.appspot.com/o/3bcea.PNG?alt=media&token=90466ef2-6072-4861-849f-f1625135125d").into(imageview); 
setContentView(R.layout.activity_view_photo);  

Upvotes: 1

Views: 36

Answers (2)

Lips_coder
Lips_coder

Reputation: 686

You should write your code like this:

setContentView(R.layout.activity_view_photo); 
Picasso.with(this).load("https://firebasestorage.googleapis.com/v0/b/student-help-portal.appspot.com/o/3bcea.PNG?alt=media&token=90466ef2-6072-4861-849f-f1625135125d").into(imageview); 

Upvotes: 1

Sergey Glotov
Sergey Glotov

Reputation: 20346

Set content view and only after that load the image

Upvotes: 2

Related Questions