I have very little activity that should show an image.
If the image is not very small (for example, 1.12 Mb 2560x1920), it displays the orientation of the change screen from the memory. I tried getDrawable.setCallback (null) but no luck.
Where am I mistaken?
public class Fullscreen extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); System.gc(); setContentView(R.layout.fullscreen); ImageView imageView = (ImageView) findViewById(R.id.full_screen_image); long imageId = 2; imageView.setImageURI(Uri.withAppendedPath(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "" + imageId)); } }
android memory image
Improve
source share