예제 #1
0
  /** {@inheritDoc} */
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    Log_OC.i(TAG, "onActivityCreated() start");

    super.onActivityCreated(savedInstanceState);
    mAdapter = new LocalFileListAdapter(mContainerActivity.getInitialDirectory(), getActivity());
    setListAdapter(mAdapter);

    Log_OC.i(TAG, "onActivityCreated() stop");
  }
예제 #2
0
 /** {@inheritDoc} */
 @Override
 public void onAttach(Activity activity) {
   super.onAttach(activity);
   try {
     mContainerActivity = (ContainerActivity) activity;
   } catch (ClassCastException e) {
     throw new ClassCastException(
         activity.toString()
             + " must implement "
             + LocalFileListFragment.ContainerActivity.class.getSimpleName());
   }
 }