Code example for DialogFragment

Methods: getActivity, startActivity

0
         
        Cursor cursor = (Cursor)mAdapter.getItem(i);
        if(cursor != null)
        { 
            String s = cursor.getString(1);
            startActivity(Intents.getProfileActivityIntent(getActivity(), mAccount, s, null));
        } 
    } 
 
    public final void onLoadFinished(Loader loader, Object obj)
    { 
        Cursor cursor = (Cursor)obj;
        if(0 == loader.getId()) {
        	getView().findViewById(R.id.list_empty_progress).setVisibility(8);
            int i = getArguments().getInt("total_plus_ones");
            int j;
            if(cursor == null)
                j = 0;
            else 
                j = cursor.getCount();
            mAdapter.setExtraPeopleCount(i - j);