Code example for ListFragment

Methods: onListItemClick, getView, startActivity

		return contextMenu.onContextItemSelected(item);
    public void onListItemClick(ListView l, View v, int position, long id) {
        super.onListItemClick(l, v, position, id);
        Context context = getView().getContext().getApplicationContext();
        Cursor cursor = adapter.getCursor();
        startActivity(new EcardIntent(cursor, context).getIntent());
     * LoaderCallBack methods 
    public Loader<Cursor> onCreateLoader(int id, Bundle arg) {
        CursorLoader cursorLoader = new CursorLoader(
        		getActivity(), EcardDao.ECARD_URI, null, "personal = ?", new String[]{isPersonal}, null);
Connect your IDE to all the code out there  Get Codota for Java