Example usage for android.support.v4.app SupportActivity toString

List of usage examples for android.support.v4.app SupportActivity toString

Introduction

In this page you can find the example usage for android.support.v4.app SupportActivity toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:mobisocial.bento.ebento.ui.RsvpFragment.java

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

    try {//from  w w w .  ja  v  a2 s.  c  om
        mListener = (OnRsvpSelectedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnRsvpSelectedListener");
    }
}

From source file:ca.mudar.mtlaucasou.BaseListFragment.java

/**
 * Attach a listener/*  w  w  w  .  j ava  2 s . c o  m*/
 */
@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    try {
        mListener = (OnPlacemarkSelectedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnPlacemarkSelectedListener");
    }
}

From source file:ca.mudar.mtlaucasou.BaseMapFragment.java

/**
 * Attach a listener./* w  w  w.ja v  a2s  .c o m*/
 */
@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    try {
        mListener = (OnMyLocationChangedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnMyLocationChangedListener");
    }
}

From source file:mobisocial.bento.todo.ui.TodoListFragment.java

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

    try {// ww  w .  j ava 2 s.  c  o m
        mListener = (OnBentoSelectedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnRsvpSelectedListener");
    }
}

From source file:com.todoroo.astrid.activity.FilterListFragment.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    // Check that the container activity has implemented the callback interface
    try {/*from  w w w .  ja  va 2 s  .c o  m*/
        mListener = (OnFilterItemClickedListener) activity;
        adapter = instantiateAdapter();
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnFilterItemClickedListener"); //$NON-NLS-1$
    }
}