I am facing a very strange problem. I have written the below code.
if (verifiedStatus.equals("1")) {
imageView.setImageResource(R.drawable.ic_verified_user_black_24dp);
}
else if (verifiedStatus.equals("0")) {
imageView.setImageResource(R.drawable.ic_not_interested_black_24dp);
} else {}
As the code runs, if the value is 1, first the verified image comes but later it changes to the not interested image. I tried debugging and I saw that the code goes into an internal file/code and in the below lines, it changes the image to the other image.
for (;;) {
Message msg = queue.next(); // might block
if (msg == null) {
// No message indicates that the message queue is quitting.
return;
}
Can someone help me in resolving this issue?