title: Cannot resolve method super in class which extends ArrayAdapter
body: <p>In the android app I am creating, I have a scrollable tabs and in one of those fragments I am trying to display all the user downloaded apps.</p>
  
  <p>I am trying to implement this using a fragment</p>
  
  <p><a href="http://javatechig.com/android/how-to-get-list-of-installed-apps-in-android" rel="nofollow noreferrer">http://javatechig.com/android/how-to-get-list-of-installed-apps-in-android</a> </p>
  
  <p>My application class extends Fragment. The class is used to initialize and list the installed applications. As getting the list of application details from PackageManage is a long running task. </p>
  
  <p>Also, this class is using ApplicationAdapter class which extends ArrayAdapter.</p>
  
  <p>My ApplicationAdapter class received this error.</p>
  
  <p><img src="https://i.stack.imgur.com/pwqfG.jpg" alt="enter image description here"></p>
  
  <p>I am trying to figure out why super is unable to be resolved and how to fix it. Shouldn't it be called at the beginning?</p>
  
  <p>Here is my java code for the ApplicationAdapter class:</p>
  
  <pre><code>package com.javatechig.listapps;
  
  import android.content.Context;
  import android.content.pm.ApplicationInfo;
  import android.content.pm.PackageManager;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.ArrayAdapter;
  import android.widget.ImageView;
  import android.widget.TextView;
  
  import com.spicycurryman.getdisciplined10.app.InstalledAppActivity;
  import com.spicycurryman.getdisciplined10.app.R;
  
  import java.util.List;
  
  
  
  
  
  
  
  public class ApplicationAdapter extends ArrayAdapter&lt;ApplicationInfo&gt; {
      private List&lt;ApplicationInfo&gt; appsList = null;
      private InstalledAppActivity context;
      private PackageManager packageManager;
  
             public ApplicationAdapter(InstalledAppActivity context, int textViewResourceId,
                                            List&lt;ApplicationInfo&gt; appsList) {
          super(context, textViewResourceId, appsList);
          this.context = context;
         this.appsList = appsList;
          packageManager = context.getActivity().getPackageManager();
        }
  
              @Override
      public int getCount() {
          return ((null != appsList) ? appsList.size() : 0);
         }
  
             @Override
      public ApplicationInfo getItem(int position) {
          return ((null != appsList) ? appsList.get(position) : null);
          }
  
             @Override
      public long getItemId(int position) {
          return position;
          }
  
              @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          View view = convertView;
          if (null == view) {
              LayoutInflater layoutInflater = (LayoutInflater) context.getActivity().
              getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              view = layoutInflater.inflate(R.layout.snippet_list_row, null);
              }
  
          ApplicationInfo data = appsList.get(position);
          if (null != data) {
             TextView appName = (TextView) view.findViewById(R.id.app_name);
             TextView packageName = (TextView) view.findViewById(R.id.app_package);
              ImageView iconview = (ImageView) view.findViewById(R.id.app_icon);
  
              appName.setText(data.loadLabel(packageManager));
              packageName.setText(data.packageName);
              iconview.setImageDrawable(data.loadIcon(packageManager));
             }
          return view;
          }
  };
  </code></pre>
  
  <p>If it is any use to show my fragment class here it is:</p>
  
  <pre><code>package com.spicycurryman.getdisciplined10.app;
  
  import android.app.ProgressDialog;
  import android.content.ActivityNotFoundException;
  import android.content.Intent;
  import android.content.pm.ApplicationInfo;
  import android.content.pm.PackageManager;
  import android.os.AsyncTask;
  import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.ListView;
  import android.widget.Toast;
  
  import com.javatechig.listapps.ApplicationAdapter;
  
  import java.util.ArrayList;
  import java.util.List;
  
  
  public class InstalledAppActivity extends Fragment {
      private PackageManager packageManager = null;
      private List&lt;ApplicationInfo&gt; applist = null;
      private ApplicationAdapter listadaptor = null;
  
      ListView InstalledAppList;
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          packageManager = (PackageManager) getActivity().getPackageManager().getInstalledPackages(0);
          new LoadApplications().execute();
  
          InstalledAppList.setOnItemClickListener(new OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
                  ApplicationInfo app = applist.get(i);
                  try {
                      Intent intent = packageManager
                              .getLaunchIntentForPackage(app.packageName);
  
                      if (null != intent) {
                          startActivity(intent);
                      }
                  }
  
                  catch (ActivityNotFoundException e) {
                      Toast.makeText(getActivity(),"",Toast.LENGTH_SHORT).show();
  
                  }
              }
  
  
  
          });
          return inflater.inflate(R.layout.installed_apps, container, false);
  
      }
  
  
      private List&lt;ApplicationInfo&gt; checkForLaunchIntent(List&lt;ApplicationInfo&gt; list) {
          ArrayList&lt;ApplicationInfo&gt; applist = new ArrayList&lt;ApplicationInfo&gt;();
          for (ApplicationInfo info : list) {
              try {
                  if (null != packageManager.getLaunchIntentForPackage(info.packageName)) {
                      applist.add(info);
                  }
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
  
          return applist;
      }
  
      private class LoadApplications extends AsyncTask&lt;Void, Void, Void&gt; {
          private ProgressDialog progress = null;
  
          @Override
          protected Void doInBackground(Void... params) {
              applist = checkForLaunchIntent(packageManager.getInstalledApplications(PackageManager.GET_META_DATA));
              listadaptor = new ApplicationAdapter(InstalledAppActivity.this,
                      R.layout.snippet_list_row, applist);
  
              return null;
          }
  
          @Override
          protected void onCancelled() {
              super.onCancelled();
          }
  
          @Override
          protected void onPostExecute(Void result) {
              //setListAdapter(listadaptor);
              InstalledAppList.setAdapter(listadaptor);
              super.onPostExecute(result);
          }
  
  
  
          @Override
          protected void onProgressUpdate(Void... values) {
              super.onProgressUpdate(values);
          }
      }
  }
  </code></pre>
  
  <p><strong>Error is:</strong> </p>
  
  <blockquote>
    <p>Cannot resolve method 'super(com.spicycurryman.getdisciplined10.app.InstalledActivity,int,java.util.List'</p>
  </blockquote>