Code example for ListFragment

Methods: onListItemClick, getActivity, startActivity

0
     * 
     * {@inheritDoc} 
     */ 
    @Override 
    public void onListItemClick(ListView l, View v, int position, long id) {
        super.onListItemClick(l, v, position, id);
 
        Intent n = new Intent(
                getActivity(),
                NoteEditActivity.class); 
        startActivity(n);
    } 
} 
 
Connect your IDE to all the code out there  Get Codota for Java