title: How to define multy inheritance in Android Java
body: <p>I have two errors in my manig=fest which I don't understand, I hope some one can help me.
  The errors in my manifest are both errors related the activity: <code>&lt;activity android:name=&quot;.PersonListAdapter&quot;/&gt;</code></p>
  <p>The errors are:</p>
  <ol>
  <li>its class should provide a default constructor (a public constructor with no arguments)</li>
  <li>PersonListAdapter must extend android.app.Activity - Regarding this error: How can I define that class extend from another class and from Android app?</li>
  </ol>
  <p>Here is my code:<br />
  manifest</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;co.il.applicationmoran&quot;&gt;
  
      &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme&quot;&gt;
  
          &lt;activity android:name=&quot;.register&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=&quot;.peoplefinder&quot;/&gt;
  
          &lt;activity android:name=&quot;.PersonListAdapter&quot;/&gt;
  
          &lt;activity android:name=&quot;.login&quot;/&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p>Class</p>
  <pre><code>package co.il.applicationmoran;
  
  import android.content.Context;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.ArrayAdapter;
  import android.widget.TextView;
  
  import androidx.annotation.NonNull;
  import androidx.annotation.Nullable;
  
  import java.util.ArrayList;
  import java.util.List;
  
  public class PersonListAdapter  extends ArrayAdapter&lt;person&gt;  {
      private static String TAG = &quot;PersonListAdapter&quot;;
      private Context mycontext;
      int myresource;
  
      public PersonListAdapter(Context context, int resource, ArrayList&lt;person&gt; objects) {
          super(context, resource, objects);
          this.mycontext = context;
          this.myresource=resource;
      }
  
      @NonNull
      @Override
      public View getView(int position,  View convertView,  ViewGroup parent) {
          String name = getItem(position).getName();
          String age=getItem(position).getAge();
          String sex=getItem(position).getSex();
  
          person person=new person(name,age,sex);
          LayoutInflater inflater=LayoutInflater.from(mycontext);
          convertView=inflater.inflate(myresource, parent, false);
  
          TextView tvName=(TextView) convertView.findViewById(R.id.textview1);
          TextView tvAge=(TextView) convertView.findViewById(R.id.textview2);
          TextView tvSex=(TextView) convertView.findViewById(R.id.textview3);
  
          tvName.setText(name);
          tvAge.setText(age);
          tvSex.setText(sex);
  
          return convertView;
      }
  }
  </code></pre>