Setting image from url to ImageView with AsynchTask
问题 I have an image on my website, that I want to set on my ImageView. Do to that I needed to use an asynch task. I'm doing it like below. But new getThumbnail().execute(stringThumbnail); is throwing me the error getThumbnail cannot be resolved to a type . What am I doing wrong in here? final ImageView thumbnail = (ImageView) findViewById(R.id.btnThumbnail); String stringThumbnail = "myImage.jpg"; new getThumbnail().execute(stringThumbnail); class getThumbnail extends AsyncTask<String, Void, Void