我正在为此方法获取java.lang.NullPointerException。我检查了适配器,列表很好,列表是在fragment_phonelist xml文件下的。
{{1}}
请帮助..
答案 0 :(得分:1)
这一行
ListView PhoneListView = (ListView)findViewById(R.id.list_phone);
不应该是这样的:
ListView PhoneListView = (ListView)dialog.findViewById(R.id.list_phone);