@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { ActionBar actionBar = getSherlockActivity().getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); super.onCreateOptionsMenu(menu, inflater); }
@Override public void onAttach(Activity activity) { super.onAttach(activity); try { listener = (OnThumbnailSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement OnThumbnailSelectedListener"); } }