我的应用按预期运行,除非我选择导航抽屉上的最后一个选项。然后我收到错误
I/Process: Sending signal. PID: 2062 SIG: 9
...然后应用程序崩溃了。 帮助
当我使用此代码时,崩溃发生时:
BindDictionary<ListaRecompensas> dictionary = new BindDictionary<>();
dictionary.addStringField(R.id.lrnivel, new StringExtractor<ListaRecompensas>() {
@Override
public String getStringValue(ListaRecompensas listaRecompensas, int position) {
return listaRecompensas.getName();
}
});
dictionary.addStringField(R.id.lrqty, new StringExtractor<ListaRecompensas>() {
@Override
public String getStringValue(ListaRecompensas listaRecompensas, int position) {
return "" + listaRecompensas.getQty();
}
});
dictionary.addStringField(R.id.lrexp, new StringExtractor<ListaRecompensas>() {
@Override
public String getStringValue(ListaRecompensas listaRecompensas, int position) {
return "" + listaRecompensas.getExp();
}
});
FunDapter adapter = new FunDapter(Recompensas.this.getActivity(),lrecompensas, R.layout.lrecompensas, dictionary);
ListView lv01 = (ListView)view.findViewById(R.id.lv01);
lv01.setAdapter(adapter);