Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The difference is that the version from android.app is tied to the version of the operating system and, depending on this version, may work differently. The version from support.v4 will always work the same regardless of OS version.
In all cases, you need to use the version from the support library. Also, android.app.Fragment is deprecated .
This does not only apply to fragments. Read about the support library in general.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question