I have a really annoying bug that has crept into my android app and I can't locate the cause (although it is possibly because I upgraded to SDK 23).
I am dynamically referencing a series of ImageView elements and filling the ImageView with a bitmap:
ImageView img = (ImageView) activity.findViewById(context.getResources().getIdentifier(result.getView(), "id", context.getString(R.string.packagename))); img.setImageBitmap(bitmap);
All of the ImageViews were filling correctly and now just one of the images is not filling (but the others are)
I suspect that the image is filling but is subsequently being either overwritten, hidden, sent to back or something else.
I have tried the debugger in Android studio that appears to confirm the ImageView is being correctly referenced and there is an image in 'bitmap' but what I can't seem to do is find if it is subsequently changed
Question Is there a way to set a debugging 'trap' to catch whenever a Resource ID is accessed (i.e. I want to know when there are changes to my R.id.inv_image