for example:
public final class R { public static final class raw { public static final int yuri=0x7f040000; } }
How can I get the resource by its name? Without using R.raw.yuri = (int)
getResources().getIdentifier( "yuri" , "raw" , getPackageName() );
I found this to be extremely slow. I stripped it out of my whole project after doing some profiling and used int[] instead.
int[]
1.4m articles
1.4m replys
5 comments
57.0k users