Code example for Handler

Methods: post

0
        } else { 
            // We are starting without an adapter, so assume we won't 
            // have our data right away and start with the progress indicator. 
            setListShown(false, false); 
        } 
        mHandler.post(mRequestFocus);
    } 
 
    public void onContentChanged() { 
        View emptyView = getView().findViewById(android.R.id.empty);
        mList = (ExpandableListView)getView().findViewById(android.R.id.list);
        if (mList == null) {
            throw new RuntimeException(
                    "Your content must have a ExpandableListView whose id attribute is " + 
                    "'android.R.id.list'"); 
        } 
        if (emptyView != null) {
            mList.setEmptyView(emptyView);
        } 
        mList.setOnChildClickListener(this);