Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
products.add(new Product(getResources().getString(R.string.ChecklistData)), R.drawable.ic_launcher, false));
My StringArray in xml call CheckListData and the Arraylist that i want to add is call products
You have to use
getResources().getStringArray(R.array.ChecklistData)
instead of
getResources().getString(R.string.ChecklistData)
if ChecklistData is <string-array > in strings.xml
ChecklistData
<string-array >
strings.xml
Add a comment
if ChecklistData is the string array then,use:
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.