Incompatible Types Error With Fragments
I'm trying to add a fragment to my main activity. When I type fragment = new CrimeFragment(); I get an Incompatible types error. I tried casting new CrimeFragment(); to a Fragment
Solution 1:
In class OffenseFragment.java
replace
import android.app.Fragment;
with
import android.support.v4.app.Fragment;
Post a Comment for "Incompatible Types Error With Fragments"