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.dealbreaker.cloud.backend.core.CloudBackendFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {/*  w  w w  . j a  va2 s.  com*/
        callback = (OnListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnListener");
    }
}

From source file:hu.naturlecso.naturshutd.CommandsFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {/*from  ww  w. j  ava 2 s.  co m*/
        callbacks = (Callbacks) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement " + TAG + ".Callbacks!");
    }
}

From source file:net.alexjf.tmm.fragments.ImmedTransactionListFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from   ww  w . ja  va 2 s.c  o  m
        listener = (OnImmedTransactionActionListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnImmedTransactionActionListener");
    }
}

From source file:com.ae.apps.messagecounter.fragments.MessageListFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from   w w  w . ja v a  2 s  . c om
        // Register for a callback when the data is ready
        mReader = (MessageDataReader) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnCheckStatusListener");
    }
}

From source file:info.wncwaterfalls.app.SearchWaterfallFragment.java

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

    // Make sure the containing activity implements the search listener interface
    try {/*from  ww w .ja  va 2s .  co m*/
        sListener = (OnWaterfallSearchListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnWaterfallSearchListener");
    }
}

From source file:net.alexjf.tmm.fragments.CategoryEditorFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from   www  .j a v a  2s. c o  m
        listener = (OnCategoryEditListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnCategoryEditListener");
    }
}

From source file:org.puder.trs80.InitialSetupDialogFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from   w  w w  .  j  a  va2 s.c  o  m
        listener = (DownloadCompletionListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement DownloadCompletionListener");
    }
}

From source file:org.spinsuite.view.FV_IndexRecordLine.java

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

From source file:dtu.ds.warnme.app.dialog.ReportDialog.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from w  w w  .ja v a2  s  .co  m
        listener = (ReportDialogListener) activity;
    } catch (ClassCastException ex) {
        throw new ClassCastException(activity.toString() + " must implement ReportDialogListener");
    }
}

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

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {// w ww  . j  a  va2 s  .c o  m
        mCallback = (FragmentEvent.BuzzListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnHeadlineSelectedListener");
    }
}