title: how can I let the array list to be clickable?
body: <p>I am trying to handle this list to be clickable.
  When I set an intent activity it doesn't work so how can I handle each element in this array list.
  The error is when I press on any element in this array list it left me to the last intent I gave it.</p>
  
  <pre><code>package com.adnan.android.autofix;
  
  import android.content.Intent;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.support.v7.view.menu.MenuView;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ArrayAdapter;
  import android.widget.GridView;
  import android.widget.ListView;
  import android.widget.ScrollView;
  import android.widget.TextView;
  
  import java.net.Inet4Address;
  import java.util.ArrayList;
  
  public class MainActivity extends AppCompatActivity implements {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          // Array list content
          ArrayList&lt;String&gt; CarsBrand = new ArrayList&lt;String&gt;();
          CarsBrand.add("Alfa Romeo");
          CarsBrand.add("Audi");
          CarsBrand.add("BMW");
          CarsBrand.add("Brilliance");
          CarsBrand.add("BYD");
          CarsBrand.add("Changan");
          CarsBrand.add("Chery");
          CarsBrand.add("Chevorlet");
          CarsBrand.add("Chrysler");
          ArrayAdapter&lt;String&gt; CarsBrandAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, CarsBrand);
  
          GridView listView = (GridView) findViewById(R.id.ListCarsBrands);
  
          listView.setAdapter(CarsBrandAdapter);
  
          // handling the array list
          listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                  Intent AlfaRomeoIntent = new Intent(MainActivity.this, AlfaRomeo.class);
                  startActivity(AlfaRomeoIntent);
  
                  Intent AudiIntent = new Intent(MainActivity.this, com.adnan.android.autofix.Audi.class);
                  startActivity(AudiIntent);
              }
          });
  
  
      }
  }
  </code></pre>