title: Wifi Direct getFragmentmanager method inconvertible types
body: <p>Using the WifiDirectDemo sample, I tried to implement it into my own app, but I have one error I cannot find an answer to.</p>
  
  <pre><code>    DeviceListFragment fragmentList = (DeviceListFragment) getFragmentManager()
              .findFragmentById(R.id.frag_list);
  
      DeviceDetailFragment fragmentDetails = getFragmentManager().findFragmentById(R.id.frag_detail);
  </code></pre>
  
  <p>Android Studio tells me that they are inconvertible types, cannot cast android.fragment to com.example.myapp.DeviceListFragment</p>
  
  <p>This fragment, DeviceListFragment and DeviceDetailFragment are both copied from the Demo, and after double checking I cannot seem to resolve this issue. Everything else is working fine.</p>