According to the official Android Dev [guide](https://developer.android.com/guide/topics/ui/controls/pickers.html), when the user clicks this button, the system calls the following method:

```
public void showTimePickerDialog(View v) {
    DialogFragment newFragment = new TimePickerFragment();
    newFragment.show(getSupportFragmentManager(), "timePicker");
}

```

However, when I try this in my Fragment Activity, it shows `TimePickerFragment` in red. And prompts that `TimePickerFragment()` cannot be resolved.

These are my imports related to TimePicker : 

```
import android.app.AlarmManager;
import android.app.DatePickerDialog;
import android.app.DatePickerDialog.OnDateSetListener;
import android.app.Dialog;
import android.app.DialogFragment;
import android.support.v4.app.FragmentActivity;
import android.view.View.OnClickListener;
import android.widget.DatePicker;
import android.widget.TimePicker;
import android.app.TimePickerDialog;

```

When I try this for `DatePicker`, the `DatePickerFragment` works.