reset password
Author Message
kshimauchi
Posts: 1
Posted 20:49 Jul 22, 2017 |

Anyone Help for a second with displaying the image to the imageView

Basically,  

if(urlToImage != null)  {

//should have data and yes the string is fine however

context = context.getApplicationContext(); or something like that should suffice?

Picasso.with(context)   <-- says there is a null context, so i tried i double check added above line

.load(urlToImage)

.into(img) <-- where img, is the imageView

}

}

Any suggestions if I remove the whole Picasso think stuff renders to the app, namely all the other field left in I get nothing

So currently I have everything rendering to the screen but the imagview: the 75dpx75dp container is all blue  

221493814
Posts: 1
Posted 13:24 Jul 23, 2017 |

Instead of defining a new context within the method, try using the global variable context within the class and assigning that as an argument to picasso.