title: onListItemClick shows as "never used"
body: <p>Below is the code for my first attempt at setting up a list fragment that clicks through to an activity (just as a test).
  I've followed the Android docs example at: <a href="https://developer.android.com/guide/components/fragments.html" rel="nofollow noreferrer">List Fragment Example</a></p>
  
  <p>However, onListItemClick shows as "never used". When I run the app my list shows up, but when I click on the items in it I just get the following returned:</p>
  
  <p>D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN</p>
  
  <p>The XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          tools:context="com.example.administrationuser.piclo.ListViewFragment"
          tools:showIn="@layout/activity_list_view"
          tools:layout_editor_absoluteY="0dp"
          tools:layout_editor_absoluteX="0dp"
          &gt;
  
      &lt;FrameLayout
          android:id="@+id/list_container_id"
          android:layout_width="0dp"
          android:layout_height="0dp"
          tools:layout_editor_absoluteY="8dp"
          tools:layout_editor_absoluteX="8dp"&gt;
  
          &lt;ListView
              android:id="@android:id/list"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:drawSelectorOnTop="false" &gt;
          &lt;/ListView&gt;
  
      &lt;/FrameLayout&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>And here is the list fragment:</p>
  
  <pre><code>package com.example.administrationuser.piclo;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.support.v4.app.Fragment;
  import android.os.Bundle;
  import android.support.v4.app.ListFragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.AdapterView;
  import android.widget.ArrayAdapter;
  import android.widget.ListAdapter;
  
  
  
  public class ListViewFragment extends ListFragment {
  
      public ListViewFragment() {}
  
          String[] myStringArray = new String[]{"aa","bbb","ccccc","dddddd"};
  
          @Override
          public void onActivityCreated(Bundle savedInstanceState) {
              super.onActivityCreated(savedInstanceState);
  
              // Populate list with our static array of titles.
              setListAdapter(new ArrayAdapter&lt;String&gt;(getActivity(),
                      android.R.layout.simple_list_item_activated_1, myStringArray));
          }
  
  
      @Override
      public void onListItemClick(ListView l, View v, int position, long id) {
          showDetails(position);   
      }
  
          void showDetails(int index) {
  
              int mCurCheckPosition = index;
              Intent intent = new Intent();
              intent.setClass(getActivity(), MessageDetails.class);
  
              intent.putExtra("Inty", mCurCheckPosition);
              startActivity(intent);
  
              startActivity(intent);
              }
  
  }
  </code></pre>