Java tutorial
//package com.java2s; import android.content.res.Resources; public class Main { private static long[] getLongIntArray(Resources r, int resid) { int[] ar = r.getIntArray(resid); long[] out; if (ar == null) { out = null; } else { out = new long[ar.length]; for (int i = 0; i < ar.length; i++) out[i] = ar[i]; } return out; } }