Is there getResources().getStringArray(R.array.array1); in BlackBerry java -


On Android I can create a file in res / values ​​that contains data

 < Code> & lt; String-array name = "array 1" & gt; & Lt; Items & gt; Data 01, data 02, data 03, data 04 & lt; / Item & gt; & Lt; Items & gt; Data 11, Data 12, Data 13, Data 14 & lt; / Item & gt; & Lt; Items & gt; Data 21, Data 22, Data 23, Data 24 & lt; / Item & gt; & Lt; Items & gt; Data 31, Data 32, Data 33, Data 34 & lt; / Item & gt;  

and then read it in Java

  string [] items; Item = Miller Resource (). GetStringArray (R. Night: 1); Int numItems = items.length; String [] temp = item [i] .split (",");  

The code will extract the data from the file.

  1. Can I do something like this in Blackberry, which will have an equivalent API to get resources ()? GetStringArray and
  2. How do I define a filename?
  3. How should the file be?

thanks

>


Comments