안드로이드 2에서 안드로이드 4로 넘어가는 소스 코드를 변경하려고합니다. 코드가 잘못되어 응용 프로그램이 시작되지 않습니다. 하지만 처음에는 로그인이 있습니다. '로그인'을 클릭하면 앱이 다운됩니다. logcat에 SimpleExpandableListAdapter
에 문제가 있음이 표시됩니다. 이것은 SimpleExpandableListAdapter를 사용하는 코드의 일부입니다안드로이드 응용 프로그램의 SimpleExpandableListAdapter 문제
expListAdapter = new SimpleExpandableListAdapter(_ContactScreen_object,
_groupSections, // groupData describes the first-level entries
R.layout.group_row, // Layout for the first-level entries
new String[] { "sectionName" }, // Key in the groupData maps to
// display
new int[] { R.id.groupname }, // Data under "friendName" key
// goes into this TextView
_result, // childData describes second-level entries
R.layout.child_row, // Layout for second-level entries
new String[] { "friendName", "status" }, // Keys in childData
// maps to display
new int[] { R.id.childname, R.id.rgb } // Data under the keys
// above go into these
// TextViews
)
로그 캣 :
당신이 문제는 코드가 오래이라고 생각하십니까? SimpleExpandableListAdapter
의 구조가 지금은 다른가요? 무엇을 바꾸어야합니까?
예외 스택 추적을 게시하십시오. – laalto
logcat을 추가했습니다. –