我真的不知道为什么,但我无法检索字符串的Id.
这是我的代码:
int resId = getApplicationContext().getResources()
.getIdentifier("About_EmailPrompt", "string", "com.yoki.android.cat");
Run Code Online (Sandbox Code Playgroud)
但它适用于所有其他类的R文件:
int resId = getApplicationContext().getResources()
.getIdentifier("arrow","drawable", "com.yoki.android.cat");
Run Code Online (Sandbox Code Playgroud)
所以我真的不明白这里发生了什么,有什么想法吗?
android ×1