Delete unnecessary things from the project.
Copy code from http://developer.android.com/reference/android/app/DialogFragment.html