get Array from resource - Android App

Android examples for App:Resource

Description

get Array from resource

Demo Code


//package com.java2s;
import android.content.res.Resources;

import android.support.annotation.ArrayRes;

public class Main {
    public static String[] getArray(Resources res, @ArrayRes int array) {
        return res.getStringArray(array);
    }//  w  w w  .j  a v  a  2s .c  o  m
}

Related Tutorials