Пример #1
0
  @Override
  protected void initData() {
    // TODO Auto-generated method stub
    super.initData();
    Cursor ccursor = getGroupCursor(null);
    cTadapter.changeCursor(ccursor);

    expandGroup(false);
  }
Пример #2
0
  @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);
  }
Пример #3
0
  @Override
  protected void onDestroy() {
    // TODO Auto-generated method stub
    super.onDestroy();

    if (cTadapter != null) {
      cTadapter.changeCursor(null);
    }

    unregisterReceiver(br);
  }
Пример #4
0
  @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();
  }