title: Clickable custom array list
body: <p>How can I make this custom array list clickable to go to the others activities because I tried the intents but it doesn't work</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          ArrayList&lt;Names&gt; namesArrayList = new ArrayList&lt;Names&gt;();
  
          namesArrayList.add(new Names(R.drawable.call_centre, "Call Centre"));
          namesArrayList.add(new Names(R.drawable.soco_academy_icon, "Academy"));
  
          NamesAdapter  NamesListAdapter = new NamesAdapter(this, namesArrayList);
  
          ListView list = (ListView) findViewById(R.id.List_View);
  
          list.setAdapter(NamesListAdapter);
  
          list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
  
  
              }
          });
      }
  }
  </code></pre>