@Override
  public void onDestroyView() {

    mGridView = null;

    super.onDestroyView();
  }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setHasOptionsMenu(true);

    checkDatabase();
  }
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    L.lifeCycle(2, L.ACTIVITYCREATED, this.toString());

    // now I know getView!
    initAdapter();

    if (savedInstanceState != null) {

      // TODO Spis dat do SharedPreferences
      mIsFavorite = savedInstanceState.getBoolean(C.TAG_BUNDLE_IS_FAVORITE);
      mSortBy = savedInstanceState.getInt(C.TAG_BUNDLE_SORT_BY);
    }

    if (!mIsDatabaseOk) {
      if (mAsyncTaskFragment == null) {
        if (UtilsNet.isConnectingToInternet()) {
          mAsyncTaskFragment = AsyncTaskFragment.newRetainedInstance();
          mAsyncTaskFragment.show(
              mActivity.getSupportFragmentManager(), ConstFragments.TAG_FRAGMENT_ASYNC_TASK);
        } else {
          L.t(mActivity.getString(R.string.error_unknown_host_exception));
        }
      }
    } else {
      initLoader();
    }
  }
  @Override
  public void onDestroy() {

    mAdapter.clean();
    mAdapter = null;

    super.onDestroy();
  }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   /*if (mMovies != null) {
       outState.putParcelableArrayList(C.TAG_BUNDLE_MOVIES, (ArrayList<? extends Parcelable>) mMovies);
   }*/
   outState.putBoolean(C.TAG_BUNDLE_IS_FAVORITE, mIsFavorite);
   outState.putInt(C.TAG_BUNDLE_SORT_BY, mSortBy);
 }
 @Override
 public void onDetach() {
   super.onDetach();
   mAdapter.clean();
 }
 @Override
 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
   inflater.inflate(R.menu.menu_main, menu);
   super.onCreateOptionsMenu(menu, inflater);
   updateFavoriteIcon(menu.getItem(0));
 }