List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:net.eledge.android.europeana.gui.dialog.NameInputDialog.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from ww w.j a v a 2 s . c o m mListener = (NameInputDialogListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement NameInputDialogListener"); } }
From source file:de.elanev.studip.android.app.backend.net.oauth.WebAuthFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w ww .j a va 2 s . co m mCallbacks = (OnWebViewAuthListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + "must implement OnWebViewAuthListener"); } }
From source file:com.google.android.apps.mytracks.fragments.CheckPermissionFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w ww. j a v a 2 s . c o m caller = (CheckPermissionCaller) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + CheckPermissionCaller.class.getSimpleName()); } }
From source file:org.jnrain.mobile.ui.base.JNRainFragment.java
@SuppressWarnings("unchecked") @Override//from w w w . j a v a 2s . c om public void onAttach(Activity activity) { super.onAttach(activity); try { _listener = (SpiceRequestListener<T>) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement SpiceRequestListener"); } // Also try to acquire the switchable fragments feature try { fragHost = (ContentFragmentHost) activity; } catch (ClassCastException e) { fragHost = null; } }
From source file:com.gmail.taneza.ronald.carbs.main.BaseListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); mFoodDbAdapter = ((CarbsApp) getActivity().getApplication()).getFoodDbAdapter(); try {//w ww .ja v a 2s . co m mMainActivityNotifier = (MainActivityNotifier) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement MainActivityNotifier"); } }
From source file:com.syncedsynapse.kore2.ui.SendTextDialogFragment.java
/** * Override the attach to the activity to guarantee that the activity implements required interface * * @param activity//from www.ja v a2 s. com * Context activity that implements listener interface */ @Override public void onAttach(Activity activity) { super.onAttach(activity); try { mListener = (SendTextDialogListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement SendTextDialogListener"); } }
From source file:org.creativecommons.thelist.fragments.ExplainerFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from ww w. j a v a 2 s .c o m mCallback = (OnClickListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + activity.getString(R.string.terms_callback_exception_message)); } }
From source file:org.creativecommons.thelist.fragments.TermsFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from www . jav a 2 s. c o m mCallback = (TermsClickListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + activity.getString(R.string.terms_callback_exception_message)); } }
From source file:com.pindroid.fragment.BrowseNotesFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w ww . j a v a 2s . c om noteSelectedListener = (OnNoteSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnNoteSelectedListener"); } }
From source file:de.eidottermihi.rpicheck.fragment.PassphraseDialog.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// w ww .jav a 2s .c om mPassphraseDialogListener = (PassphraseDialogListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement PassphraseDialogListener."); } }