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.google.android.apps.mytracks.fragments.DeleteOneTrackDialogFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    try {//ww w .java  2  s.com
        caller = (DeleteOneTrackCaller) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement DeleteOneTrackCaller");
    }
}

From source file:com.groksolutions.grok.mobile.SortBarFragment.java

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

From source file:com.mattprecious.notisync.fragment.AccessibilityDialogFragment.java

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

    try {//from www . jav  a 2  s.c  o  m
        listener = (AccessibilityDialogListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString() + " must implement AccessibilityDialogListener");
    }
}

From source file:br.com.bioscada.apps.biotracks.fragments.ConfirmSyncDialogFragment.java

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

From source file:com.example.diego.activitytracker.ArticleFragment.java

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

From source file:com.intervigil.micdroid.NameEntryDialogFragment.java

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

From source file:com.pengkv.egg.fragment.ReloadFragment.java

@Override
public void onAttach(Activity activity) {
    super.onAttach(activity);
    if (activity instanceof IRefresh) {
        mHostActivity = (IRefresh) activity;
    } else {/*from w  w w. j  a  va  2s .  c o  m*/
        throw new ClassCastException(activity.toString() + getString(R.string.base_wrong_class));
    }
}

From source file:com.echlabsw.android.drawertab.ExampleFragment.java

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

From source file:com.strategames.catchdastars.fragments.SelectMusicFragment.java

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

From source file:com.google.android.apps.mytracks.fragments.EnableSyncDialogFragment.java

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