(1) Android.app.Fragment: The minimum compatible version is android:minsdkversion= "11"
So your app is not compatible with apps under 3.0.
can use the <fragment> label, this is very important, if the use of android.support.v4.app.Fragment words, is not to use the <fragment> tag, Will throw android.view.InflateException:Binary XML file line #7: Error inflating class fragment exception
(2) Android.support.v4.app.Fragment: can be compatible to 1.6 version, cannot use <fragment> tag, need to be added in the program by add or replace, but also need
Android-support-v4.jar
Fragment the use of tutorials please refer to the official website of the demo, that is, android.app.Fragment as an example, you can use the Getfragmentmanager (), activity of a method,
If you use android.support.v4.app.Fragment, you need to inherit fragmentactivity and use Getsupportfragmentmanager, both of which are designed to
Get Fragmentmanager, name the same but the package name is not the same.
Android Fragment (Android.support.v4.app.Fragment and Android.app.Fragment