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.royclarkson.springagram.HomeFragment.java

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

From source file:org.xbmc.kore.ui.hosts.AddHostFragmentFinish.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from ww w  .  j  a v  a  2s.c om
        listener = (AddHostFinishListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement AddHostFinishListener interface.");
    }
}

From source file:com.cisco.prototype.ledsignaldetection.Fragments.LoginFragment.java

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

From source file:com.microsoft.rightsmanagement.sampleapp.ProgressDialogFragment.java

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

From source file:org.musicbrainz.mobile.dialog.ConnectionErrorDialog.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    context = activity.getApplicationContext();
    try {/* w ww . ja  va2s .  c om*/
        callbacks = (ConnectionErrorCallbacks) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(
                activity.toString() + " must implement " + ConnectionErrorCallbacks.class.getSimpleName());
    }
}

From source file:org.cowboycoders.cyclisimo.fragments.DeleteOneTrackDialogFragment.java

@Override
public void onAttach(Activity anActivity) {
    super.onAttach(anActivity);
    try {/*from  www.j  a va2 s  . c o m*/
        caller = (DeleteOneTrackCaller) anActivity;
    } catch (ClassCastException e) {
        throw new ClassCastException(anActivity.toString() + " must implement DeleteOneTrackCaller");
    }
}

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

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {/* ww w. ja v  a  2s  .  c  om*/
        mReader = (MessageDataReader) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnCheckStatusListener");
    }
}

From source file:com.mifos.mifosxdroid.online.LoanTransactionsFragment.java

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

From source file:com.mstar.tv.tvplayer.philips.setting.SettingMainFragment.java

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

From source file:io.apptik.widget.captcha.CaptchaFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//from  ww w.  j  a  va 2  s.  c  o m
        mListener = (CaptchaCallback) activity;
    } catch (ClassCastException e) {
        Log.i(TAG, activity.toString() + " does not implement CaptchaCallback so no callback can be send.");
    }
}