I thought this to bind two arrays from resource into one array:
Resource res=getResources();
final int[] one_array=res.getIntArray(R.array.first_array) + res.getIntArray(R.array.second_array);
But variable array can't be declared like that showing:
The operator + is undefined for the argument type(s) int[], int[]
Also I would like to bind two arrays from resource + one array into one array. In my thought, it should be:
Resource res=getResource();
final int[] one_array={ 1,2,3,4,5,res.getIntArray(R.array.first_array),res.getIntArray(R.array.second_array) };
But variable array can't be declared like that showing:
Multiple markers at this line
- Type mismatch: cannot convert from
int[] to int
How can I achieve declaring one array by binding two arrays from resources and normal array? Is there another/alternative ways/solutions to bind arrays?