Can we add Listener for custom ArrayAdpater class
<p>I have custom <code>ArrayAdapter</code> class for my <code>listview</code>.</p>

<p>I am using that custom adapter for more <code>listviews</code>.</p>

<p>All the <code>listview</code> items have to start the same activity when clicked, how to do that without adding individual itemlistener to each <code>listview</code> item?</p>

<p>I have done something like this:</p>

<pre><code>public View getView(int position, View convertView, ViewGroup parent) {
        LayoutInflater inflater = (LayoutInflater)(context.getSystemService(Context.LAYOUT_INFLATER_SERVICE));
        row                     = inflater.inflate(layoutResourceId, parent, false);
        ImageView albumArt      = (ImageView)(row.findViewById(R.id.album_art));
        TextView  albumName     = (TextView)(row.findViewById(R.id.album_name));

        final OnClickListener Listener = new OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent intent = new Intent(v.getContext(), PlayerActivity.class);
                    intent.putExtra("albumart", album.albumArt);
                    v.getContext().startActivity(intent);
                }
            };
            row.setOnClickListener(Listener);
       }
</code></pre>

<p>Any suggestions please?</p>
