Today found need to use fragment, but can not directly import out, looked for a bit originally it here:
*android-sdk/extras/android/support/v4/android-support-v4.jar
I found it on the Internet. Import into the project, the Eclipse method is many, but the Android studio did not find, I tried, found ... Well, I'm a beginner.
Right-click on the app, then New->package, choose a location for yourself, I'll put it under "... \app\src\main\java" and then copy it in just a few android-support-v4.jar.
You can then import it into the project:
import android.support.v4.app.Fragment;import android.support.v4.app.FragmentActivity;
(Very simple things, personal notes bar)
Copyright NOTICE: This article is nomasp Couvant original article, without permission is prohibited reprint! Welcome to my blog: http://blog.csdn.net/nomasp
How to introduce Android-support-v4/fragment