I need to pass a resource ID to a method in one of my classes. It needs to use both the id that the reference points to and also it needs the string. How should I best achie
I did like this, it is working for me:
imageView.setImageResource(context.getResources(). getIdentifier("drawable/apple", null, context.getPackageName()));