Why AsyncTask is not execute in PostExecute method of another AsynkTask?
<p>I am making a sectional listview in which to section first is pending request list and second is already friend there are two button accept and reject in first section of list view.
When I click on accept hit server and change stautus and now my List should be update and first section accepted list should showing in friendlist in second section of listview.
I am using following code:-</p>

<pre><code>public class EntryAdapter extends ArrayAdapter&lt;Item&gt; {

private Context context;
private List&lt;Item&gt; items;
private LayoutInflater objlayoutinflator;
private PostJobImageLoader objimageLoader;
private ConnectionFriendListModle objmodle=null;

public EntryAdapter(Context context,List&lt;Item&gt; items) {
    super(context, 0, items);
    this.context = context;
    this.items = items;
    objlayoutinflator = (LayoutInflater) context
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    objimageLoader = new PostJobImageLoader(context.getApplicationContext());
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    View myview = convertView;

    final Item objitem = items.get(position);
    if (objitem != null) {
        if (objitem.isSection()) {
            SectionItem objsection = (SectionItem) objitem;
            myview = objlayoutinflator.inflate(R.layout.listviewsection,
                    null);

            myview.setOnClickListener(null);
            myview.setOnLongClickListener(null);
            myview.setLongClickable(false);

            final TextView sectionView = (TextView) myview
                    .findViewById(R.id.txtsection);
            sectionView.setText(objsection.getTitle());
        } else {
            objmodle = (ConnectionFriendListModle) objitem;
            myview = objlayoutinflator.inflate(R.layout.connectionlistrow,
                    null);
            final TextView title = (TextView) myview
                    .findViewById(R.id.jobtitleinjobbidalert);
            final TextView subtitle = (TextView) myview
                    .findViewById(R.id.jobsubtitle);
            final ImageView objimageview = (ImageView) myview
                    .findViewById(R.id.user_image);
            final Button objaccept = (Button) myview
                    .findViewById(R.id.btnaccept);
            final Button objreject = (Button) myview
                    .findViewById(R.id.btnreject);

            if (objmodle.getStatus().equalsIgnoreCase("pending")) {
                objaccept.setVisibility(View.VISIBLE);
                objreject.setVisibility(View.VISIBLE);
                title.setText(objmodle.getUsername());
                subtitle.setText(objmodle.getName());
                String url = objmodle.getPicture();
                objimageLoader.DisplayImage(AppConstants.IMAGE_BASE_URL
                        + url, objimageview);
            } else {
                objaccept.setVisibility(View.INVISIBLE);
                objreject.setVisibility(View.INVISIBLE);
                title.setText(objmodle.getUsername());
                subtitle.setText(objmodle.getName());
                String url = objmodle.getPicture();
                objimageLoader.DisplayImage(AppConstants.IMAGE_BASE_URL+url, objimageview);
            }

            objaccept.setOnClickListener(new View.OnClickListener() {

                @Override
                public void onClick(View v) {

                    new AcceptFriendRequest().execute(objmodle.getId(),"accepted");
                }
            });
            objreject.setOnClickListener(new View.OnClickListener() {

                @Override
                public void onClick(View v)
                {

                }
            });
        }
    }
    return myview;
}


 private class AcceptFriendRequest extends AsyncTask&lt;String,Void,String&gt;
    {
     ProgressDialog objprogress = new ProgressDialog(EntryAdapter.this.context);
     AppRequestHandler objApprequest = new AppRequestHandler();
     String objresponce="";
        @Override
        protected void onPreExecute() {
            objprogress.setMessage("Please Wait While Loading...");
            objprogress.show();
        }

        @Override
        protected String doInBackground(String... params) {
            objresponce = objApprequest.acceptRequest(params[0],params[1]);
            return objresponce;
        }

        @Override
        protected void onPostExecute(String result) {
            if(objprogress.isShowing())
            {
                objprogress.dismiss();
            }
            if(result.equals("0"))
            {
                SharedPreferences myPrefs = EntryAdapter.this.context.getSharedPreferences(
                        AppConstants.MYPREF, EntryAdapter.this.context.MODE_WORLD_READABLE);
                String userid = myPrefs.getString(AppConstants.USER_ID, "");

                                 //but when controll reach this line not execute this asynctask and niether update listview
                new GetAllConnectionDetail().equals("86");

            }
        }
    }

 private class GetAllConnectionDetail extends AsyncTask&lt;String,Void,List&lt;Item&gt;&gt;
    {
     ProgressDialog objprogress = new ProgressDialog(EntryAdapter.this.context);
     AppRequestHandler objApprequest = new AppRequestHandler();
     List&lt;Item&gt; objlistitem=null;
        @Override
        protected void onPreExecute() {
            objprogress.setMessage("Please Wait While Loading...");
            objprogress.show();
        }

        @Override
        protected List&lt;Item&gt; doInBackground(String... params) {
            objlistitem = objApprequest.connectionDetails(params[0]);
            return objlistitem;
        }

        @Override
        protected void onPostExecute(List&lt;Item&gt; result) {
            if(objprogress.isShowing())
            {
                objprogress.dismiss();
            }
              items.clear();
              items.addAll(result);
              notifyDataSetChanged();   
        }

    }
</code></pre>

<p>}</p>

<p>Is am going right way or wrong please any one help me why it is not working...</p>
