Code example for Activity

Methods: getLayoutInflater

0
    public ChatPagerAdapter(Activity activity, FragmentManager fm) {
         
        super(fm);
         
        mActivity = activity;
        mInflate = activity.getLayoutInflater();
        mHandler = new SimpleAlertHandler(activity);
 
        mAdapter = new ListTreeAdapter(null);
 
        mContentObserver = new MyContentObserver();
        mDataSetObserver = new MyDataSetObserver();
        mQueryHandler = new QueryHandler(activity);
 
    } 
 
    public void changeConnection(IImConnection conn) {
        mQueryHandler.cancelOperation(TOKEN_ONGOING_CONVERSATION);
 
        synchronized (this) {
            if (mOngoingConversations != null) {