@Override protected void initData() { // TODO Auto-generated method stub super.initData(); Cursor ccursor = getGroupCursor(null); cTadapter.changeCursor(ccursor); expandGroup(false); }
@Override protected void fdView() { // TODO Auto-generated method stub super.fdView(); elv = (ExpandableListView) findViewById(R.id.contact_elistview); cTadapter = new IOCursorTreeAdapter(null, this); elv.setAdapter(cTadapter); elv.setOnChildClickListener(this); }
@Override protected void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); if (cTadapter != null) { cTadapter.changeCursor(null); } unregisterReceiver(br); }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub TAG = "MailContactActivity"; super.onCreate(savedInstanceState); setContentView(R.layout.home_contact_list); IntentFilter ifilter = new IntentFilter(BR_UPDATE_CONTACT); registerReceiver(br, ifilter); fdView(); initData(); }