First of all, i am sorry because there is similar question that already been asked before. I've tried but it does not worked in my program. Hence, I need some help from you to help me to finish my program. Thank you.

**Problem** : my list cannot be click to go to next activity.

ListPending.java

```
  public void getTable(String r) {
    final ListView lv;
    lv = (ListView) findViewById(R.id.lsApproval);
    ArrayList<HashMap<String, String>> feedList= new ArrayList<HashMap<String, String>>();

    try {

        JSONArray jArray = new JSONArray(r);

        JSONObject jInit = jArray.getJSONObject(0);
        String valid = jInit.getString("valid");
        String none="NO";
        String empty="EMPTY";
        TextView tv;
        tv = (TextView)findViewById(R.id.tvNone);

        if (valid.equals(none))
        {
            TextView tv1,tv2,tv3;

            tv1 = (TextView)findViewById(R.id.tvSname);
            tv2 = (TextView)findViewById(R.id.tvDest);
            tv3 = (TextView)findViewById(R.id.tvDate);

            tv.setText("\n\n\n\n\n\n" + "You do not have applicant under your approval" + "\n\n\n\n" );
            tv1.setText("");
            tv2.setText("");
            tv3.setText("");

        }
        else if (valid.equals(empty))
        {
            TextView tv1,tv2,tv3;

            tv1 = (TextView)findViewById(R.id.tvSname);
            tv2 = (TextView)findViewById(R.id.tvDest);
            tv3 = (TextView)findViewById(R.id.tvDate);

            tv.setText("\n\n\n\n\n\n" + "No Pending List" + "\n\n\n\n" );
            tv1.setText("");
            tv2.setText("");
            tv3.setText("");

        }
        else
        {
            String j=String.valueOf(jArray.length());
            tv.setText("Have " +j+" applications need your approval");

            for(int i=0; i<jArray.length();i++){

                JSONObject json = jArray.getJSONObject(i);

                String date = json.getString("dtfrom");
                StringTokenizer tk = new StringTokenizer(date);
                String dat = tk.nextToken();  // <---  yyyy-mm-dd

                String staff = json.getString("staffname");
                String dest = json.getString("destination");

                HashMap<String, String> map = new HashMap<String, String>();
                map.put("image", String.valueOf(R.mipmap.view));
                map.put("staff", staff);
                map.put("dest", dest);
                map.put("date", dat);
                feedList.add(map);

                SimpleAdapter simpleAdapter = new SimpleAdapter(this, feedList, R.layout.list_pending,
                        new String[]{"staff", "dest","date","image"},
                        new int[]{R.id.tvStaff, R.id.tvDest, R.id.tvDate, R.id.ibView});
                lv.setAdapter(simpleAdapter);

                // React to user clicks on item
                lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {

                    public void onItemClick(AdapterView<?> parentAdapter, View view, int position,
                                            long id) {

                        Toast.makeText(ListPending.this, "try" , Toast.LENGTH_SHORT).show();

                    }
                });

            }
        }

```

it successfully show the data from database but not clickable.

[![enter image description here](https://i.stack.imgur.com/KzZMD.jpg)](https://i.stack.imgur.com/KzZMD.jpg)