Code example for ListFragment

Methods: getArguments, getLoaderManager, onActivityCreated

    public static final String EXTRA_DEVICE = "device";
    public void onActivityCreated(Bundle savedInstanceState) {
        getLoaderManager().initLoader(0, getArguments(), this);
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        Intent intent = new Intent(view.getContext(), RecoveryActivity.class);
        intent.putExtra(EXTRA_RECOVERY, (Recovery) parent.getItemAtPosition(position));
    public Loader<List<Recovery>> onCreateLoader(int arg0, Bundle arg1) {
        Device device = Device.valueOf(arg1.getString(EXTRA_DEVICE));
        return new ExtendedDeviceLoader(getActivity(), device);
Connect your IDE to all the code out there  Get Codota for Java