I want to pass in string resource value in string array but it doesn't take value in array. it will take null value
Below is my code :
prepaid = getResources().getString(R.string.lbl_prepaid);
dth = getResources().getString(R.string.lbl_dth);
public String[] addedRTHomeList(){
String[] homeList = {prepaid,dth,"PostPaid","Utility Services","Complaint Entry","Complaint Status","Recharge Status",chat,"Topup Request","Redeem Discount","Private Bus Booking","ST Bus Booking","Hotel Booking","Flight Booking","Money Transfer","Settings","Reports","DTH Activation"};
return homeList;
}
for(int i = 0; i < ba.addedRTHomeList().length ; i++)
{
md = new MenuDetail();
md.setMenuName(ba.addedRTHomeList()[i]);
md.setImageId(ba.RTDrwableListThemeRed()[i]);
RTmenuListRed.add(md);
RTMenuThemeRed.put(ba.RTMenuCode()[i],RTmenuListRed);
}
In for loop when i access 1st value of addedRTHomeList array it take null value
homeList = {prepaid,dth}you can only combine using Array.combine