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:org.jssec.android.privacypolicy.ConfirmFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    if (!(activity instanceof DialogListener)) {
        throw new ClassCastException(activity.toString() + " must implement DialogListener.");
    }//from w  w  w .  j a v  a 2  s  .c  o m
    mListener = (DialogListener) activity;
}

From source file:io.oceanos.shaderbox.dialog.ConfirmDeleteDialogFragment.java

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

From source file:com.handpoint.headstart.client.ui.ForgotPasscodeDialog.java

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

From source file:com.hotstar.player.adplayer.player.PlayerClickableAdFragment.java

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

    try {/*w w  w  .  j av  a  2  s  .  c  om*/
        callback = (OnAdUserInteraction) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnAdUserInteraction");
    }
}

From source file:com.bytestemplar.tonedef.international.CountryListFragment.java

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

From source file:com.techjoynt.android.nxt.fragment.dialog.DeviceSwitchFragment.java

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

From source file:org.anhonesteffort.flock.IntroductionFragment.java

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

    if (activity instanceof SetupActivity)
        this.fragmentActivity = (SetupActivity) activity;
    else//www.  j ava 2s . co  m
        throw new ClassCastException(activity.toString() + " not what I expected D: !");
}

From source file:nz.al4.airclock.TimePickerFragment.java

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

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

From source file:com.digi.android.wva.fragments.PreConnectionDialog.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    if (!(activity instanceof PreConnectionDialogListener)) {
        throw new ClassCastException(activity.toString() + " must implement AuthenticationDialogListener!");
    }//from   ww w .  j a v  a 2  s.  co m
}

From source file:jp.co.conit.sss.sp.ex1.fragment.SettingsFragment.java

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