How can I set this image to activity in Android

view full story

http://stackoverflow.com – I'm downloading file using Async on android, Now i want this files to display on activity. How can I do this inside onSucess method? I tried below method but image is not showing! AsyncHttpClient fileDownload = new AsyncHttpClient(); String[] allowedContentTypes = new String[] { "image/png", "image/jpeg" }; fileDownload.get("http://server.com/file.png", new BinaryHttpResponseHandler(allowedContentTypes) { @Override public void onSuccess(byte[] fileData) { //Do Something here to view files in activity ImageView img = (ImageView) findViewById (R.id.imageview1); (HowTos)