Here you can find the source of getStringArray(int arrayId)
Parameter | Description |
---|---|
arrayId | The ID of the string array in the resources. |
public static String[] getStringArray(int arrayId)
//package com.java2s; import android.content.res.Resources; public class Main { /**//from w w w . j av a 2 s. c o m * The resources of the Android application. */ private static Resources resources; /** * Get a string array by its ID in the resources. * * @param arrayId * The ID of the string array in the resources. * * @return * An array of String taken from the resources files. */ public static String[] getStringArray(int arrayId) { return resources.getStringArray(arrayId); } }