안녕 얘들 아 내가 널 포인터 예외를 얻고 문자열 배열에 문자열을 할당하려고하면은 .. Pls는 나에게 솔루션을 제공 .. 여기 안드로이드 배열 문자열
내 코드와 나는이에 널 포인터를 얻고있다 줄 엄지 [j] = 제목; 코드는 다음과 같이 ...for (int i = 0; i < items.getLength(); i++) {
Node item = items.item(i);
NodeList properties = item.getChildNodes();
for (int j = 0; j < properties.getLength(); j++) {
Node property = properties.item(j);
String name = property.getNodeName();
if (name.equalsIgnoreCase("title")) {
try{
property.normalize();
Spanned title2 = Html.fromHtml(property.getFirstChild().getNodeValue().replaceAll("\\<.*?>", ""));
title = title2.toString();
}catch(Exception e){
Log.v("Exception",""+e);
}
thumbs[j]=title;
}
}
}
어디에서 '엄지 손가락'을 초기화 했습니까? 우리에게 보여줄 수 있니? – Cristian