I would like to know if it is possible to recognize, if id is from drawable or strings resource.
For example:
If I call R.strings.hello that return int value `2131099681.
Can i recognize that the id is from strings folder?
I would like to know if it is possible to recognize, if id is from drawable or strings resource.
For example:
If I call R.strings.hello that return int value `2131099681.
Can i recognize that the id is from strings folder?
I guess you could use (in activity)
getResources().getResourceTypeName(int resid);
As suggested here