¡@

Home 

2014/10/16 ¤W¤È 08:25:52

android Programming Glossary: testarray

Help in getting String Array from arrays.xml file

http://stackoverflow.com/questions/2453989/help-in-getting-string-array-from-arrays-xml-file

When I try to run it in the emulator I get a force close message. If I define the array in the java file String testArray new String one two three etc it works but when I use String testArray getResources .getStringArray R.array.testArray it.. If I define the array in the java file String testArray new String one two three etc it works but when I use String testArray getResources .getStringArray R.array.testArray it doesnt work. Here is my Java file package com.xtensivearts.episode.seven.. testArray new String one two three etc it works but when I use String testArray getResources .getStringArray R.array.testArray it doesnt work. Here is my Java file package com.xtensivearts.episode.seven import android.app.ListActivity import android.os.Bundle..