Code example for ListFragment

Methods: onSaveInstanceState

    public void onSaveInstanceState(Bundle outState) {
        outState.putInt("curChoice", curCheckPosition);
    public void onListItemClick(ListView l, View v, int position, long id) {
        // The header is insanely the first position in the list. 
        showDetails(position - 1);
     * Helper function to show the details of a selected item, either by 
     * displaying a fragment in-place in the current UI, or starting a 
     * whole new activity in which it is displayed. 
Contextual code suggestions in your IDE  Get Codota for Java