@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); database = new DB(getActivity()); // TODO: replace with a real list adapter KematianAdapter kAdapter = new KematianAdapter(getActivity(), R.layout.list_kematian, database.findAllKematian()); /*setListAdapter(new ArrayAdapter<DummyContent.DummyItem>(getActivity(), android.R.layout.simple_list_item_activated_1, android.R.id.text1, DummyContent.ITEMS));*/ setListAdapter(kAdapter); }
public void reloadList() { KematianAdapter kAdapter = new KematianAdapter(getActivity(), R.layout.list_kematian, database.findAllKematian()); setListAdapter(kAdapter); }