V
V
Vyacheslav_Shilov2022-01-03 17:49:58
Android
Vyacheslav_Shilov, 2022-01-03 17:49:58

Why is the image not displayed in ImageView on Samsung?

On all phones it is displayed, on Samsung it is not displayed. Here is the method responsible for displaying the image in the ImageView

@Override
        protected void onPostExecute(Bitmap result) {
// Set the bitmap into ImageView
            image = (ImageView) findViewById(R.id.image);
            image.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

            image.setImageBitmap(result);
            image.invalidate();            
// Close progressdialog
            mProgressDialog.dismiss();
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav_Shilov, 2022-01-03
@Vyacheslav_Shilov

The point was that the image in the bitmap was compiled with a url, and the url was "http" instead of "https". Some versions seem to know that a redirect is needed, some do not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question