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:nz.al4.airclock.DatePickerFragment.java

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

    try {//from  w  ww  . j  av a2s. c  o  m
        mCallback = (OnDatePickedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnDatePickedListener.");
    }
}

From source file:com.groksolutions.grok.mobile.dialog.ConfirmDialogFragment.java

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

From source file:de.azapps.mirakel.new_ui.fragments.ListsFragment.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 = (OnListSelectedListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnListSelectedListener");
    }
}

From source file:fragments.SavePicker.java

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

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

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

From source file:com.tizianobasile.multipanerecipes.TitlesFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {/*from  w ww . j  av a2s.c om*/
        itemSelectListener = (OnItemSelectListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnItemSelectListener");
    }
}

From source file:ca.mudar.parkcatcher.ui.fragments.DatePickerFragment.java

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

From source file:com.syncedsynapse.kore2.ui.hosts.AddHostFragmentWelcome.java

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

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

@Override
public void onAttach(Context context) {
    super.onAttach(context);
    this.context = context;
    ((SurveyQuestionViewPager) context).fragmentCommunicator = this;
    Activity activity = (Activity) context;
    try {//w  w  w.j ava  2 s  . com
        mDetachFragment = (DisableSwipe) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement OnAnswerSelectedListener");
    }
}

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

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//www  .  jav  a  2 s .  com
        mShutdownDialogListener = (ShutdownDialogListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement ShutdownDialogListener.");
    }
}