Resource ID #0x7f060078 type #0x1 is not valid

Resource ID #0x7f060078 type #0x1 is not valid


<string-array name="arr1">
    <item>1</item>
    <item>1</item>
</string-array>
 
<integer-array name="arr2">
    <item>1</item>
    <item>1</item>
</integer-array> 
 
int mVideoTypes = getResources().getIntArray(R.array.arr1); //Error 
int mVideoTypes = getResources().getIntArray(R.array.arr2); //Success

Комментариев нет:

Отправить комментарий