How to convert image resources to integer?
I used this:
int rh=this.getResources().getIdentifier("ic_launcher", null, this.getPackageName());
but it wont work.
I logcat this and the value of rh is 0 always.
is there any alternative way to convert image to integer?
Try this specifing type:
Keep in mind it IS NOT converting image to integer,
getIdentifier()merely finds resource id which is used to find resource packed in .apk file.