CharSequence[] mPhotoOptions = new CharSequence[10];
mPhotoOptions = getResources().getStringArray(R.array.save_coupon_add_photo_options);
if (!TextUtils.isEmpty( mItemList.mItemImagePath ) || !TextUtils.isEmpty( mResizedPhotoFilePath ) ) {
mPhotoOptions[2]= getResources().getString(R.string.remove_image);
}
它给ArrayOutOfBoundException