Example usage for android.app Activity toString

List of usage examples for android.app Activity toString

Introduction

In this page you can find the example usage for android.app Activity toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

From source file:com.battlelancer.seriesguide.ui.dialogs.AddListDialogFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);

    try {//from ww  w. j  a  v  a 2  s  .c om
        mListener = (OnListsChangedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnListsChangedListener");
    }
}

From source file:ca.etsmtl.applets.etsmobile.fragments.NewsListFragment.java

@Override
public void onAttach(final Activity activity) {
    super.onAttach(activity);
    try {/*from  ww  w.  j a  v  a2 s  .  c  o m*/
        selectedItemListener = (NewsListSelectedItemListener) activity;
    } catch (final ClassCastException e) {
        throw new ClassCastException(activity.toString()
                + "l'activit doit implmenter l'interface NewsListSelectedItemListener");
    }
}

From source file:com.google.android.apps.mytracks.fragments.AddEmailsDialogFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from w w  w  .  ja v a  2 s. c  o m
        caller = (AddEmailsCaller) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(
                activity.toString() + " must implement " + AddEmailsCaller.class.getSimpleName());
    }
}

From source file:com.secretparty.app.ThematicDetailedFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {/*  www .  j  av a  2  s .com*/
        mCallback = (FragmentEvent.PartySelectedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnHeadlineSelectedListener");
    }
}

From source file:org.iisgcp.waterwalk.fragment.PointOfInterestGridFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);

    try {//from w w  w. j  a v a 2  s . c  o m
        mListener = (OnItemClickedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnItemClickedListener");
    }
}

From source file:com.piusvelte.cloudset.android.DevicesFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);

    try {/*from w  w  w  .ja  v a 2 s.  c  o  m*/
        callback = (DevicesListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement DevicesListener");
    }
}

From source file:com.ota.updates.fragments.AvailableFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from   w  w w. ja  v  a 2s.c  o m
        mListener = (FragmentInteractionListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnFragmentInteractionListener");
    }
}

From source file:com.sandklef.coachapp.fragments.TeamFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//w w  w .j  a  v  a2s . c  o  m
        mListener = (TeamFragmentListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement TeamFragmentListener");
    }
}

From source file:de.eidottermihi.rpicheck.fragment.CommandPlaceholdersDialog.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {/*from   w w  w.  ja va  2 s  . co m*/
        activityListener = (PlaceholdersDialogListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement PlaceholdersDialogListener.");
    }
}

From source file:com.deliciousdroid.fragment.MainSearchResultsFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {/* ww  w  . j a v a 2s .  co m*/
        searchActionListener = (OnSearchActionListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnSearchActionListener");
    }
}