Logcat FATAL EXCEPTION: main Process: com.example.markpalmer.blackjack21, PID: 21864 java.lang.OutOfMemoryError: Failed to allocate a 5808012 byte allocation with 5226696 free bytes and 4MB until OOM
Hi, I know there are some posts regarding this, but I don't really understand the answers. The error is random, and occurs when setting an imageview:
ivPlayerCard3.setImageResource(picP3);
The images are not large: 36kb, 500x700 .png files. The thing is for no particular reason I have put them in the res>mipmap-hdpi folder. Could this be the reason for my problem. Would shifting them to the drawable folder help? Many thanks in advance.