I am new to fragments and had a question:
When I updated my SDK tool and went to create a project(min = api8, the default one), I noticed the android-support-v4.jar in my Referenced Library.
When I extended my class and tried to use the Fragment class, I found out there are 2. One is android.app.Fragment and other is android.support.v4.app.Fragment. What is the difference between these two?
If you’re developing for Android 3+, you can use app.Fragment.
However, in 3-, Fragments didn’t exist yet. That is where the support library comes in. It provides Fragments for older versions of Android.
See also this link