I am learning android development right now and i came across the fragment class.
Here I found out that we can use two imports for the Fragment Class, namely
- android.support.v4.app.Fragment : Can be used for API < 11 as well.
- android.app.Fragment : Used for API >= 11 ONLY.
However I found that when I use support fragment in an activity, it crashes when I extend the Activity class. The Support Fragment works fine when I extend FragmentActivity or ActionbarActivity.
Please help me understand why does this happen.