List of usage examples for android.content Context toString
public String toString()
From source file:com.teamltt.carcare.fragment.GraphFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnGraphFragmentInteractionListener) { mListener = (OnGraphFragmentInteractionListener) context; } else {//from w ww . j a v a 2 s .co m throw new RuntimeException(context.toString() + " must implement OnListFragmentInteractionListener"); } }
From source file:com.crimsonrgames.titanium.htmltester.AddTagDialogFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnAddTagDialogFragmentInteractionListener) { mListener = (OnAddTagDialogFragmentInteractionListener) context; } else {//from w ww . j a v a 2 s. c o m throw new RuntimeException( context.toString() + " must implement OnAddTagDialogFragmentInteractionListener"); } }
From source file:org.shingo.shingoeventsapp.ui.AffiliateFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof AffiliateInterface) mAffiliates = (AffiliateInterface) context; else// www . jav a2s. c o m throw new RuntimeException(context.toString() + " must implement AffiliateInterface"); if (context instanceof CacheInterface) mCache = (CacheInterface) context; else throw new RuntimeException(context.toString() + " must implement CacheInterface"); if (context instanceof OnErrorListener) mErrorListener = (OnErrorListener) context; else throw new RuntimeException(context.toString() + " must implement OnErrorListener"); // if (context instanceof OnListFragmentInteractionListener) // mListener = (OnListFragmentInteractionListener) context; // else // throw new RuntimeException(context.toString() + " must implement OnListFragmentInteractionListener"); }
From source file:io.github.guaidaodl.pomodorotimer.ui.timer.TimerFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); try {/*from w w w . j a v a 2s . co m*/ mDelegate = (TimerFragmentDelegate) context; } catch (ClassCastException e) { throw new RuntimeException(context.toString() + " must implement TimerFragmentDelegate"); } }
From source file:augsburg.se.alltagsguide.start.LanguageFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); try {//w ww .ja v a 2 s. c o m mListener = (OnLanguageFragmentInteractionListener) context; } catch (ClassCastException e) { throw new ClassCastException( context.toString() + " must implement OnLanguageFragmentInteractionListener"); } }
From source file:es.wolfi.app.passman.VaultLockScreen.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof VaultUnlockInteractionListener) { mListener = (VaultUnlockInteractionListener) context; } else {//from w w w . j a va 2 s . co m throw new RuntimeException(context.toString() + " must implement VaultUnlockInteractionListener"); } }
From source file:java_lang_programming.com.android_layout_demo.article81.CalendarFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnFragmentInteractionListener) { callback = (OnFragmentInteractionListener) context; } else {//from w ww . j av a 2 s . c o m throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:augsburg.se.alltagsguide.start.LocationFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); try {/*from w ww. ja v a2s. co m*/ mListener = (OnLocationFragmentInteractionListener) context; } catch (ClassCastException e) { throw new ClassCastException(context.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:com.kii.sample.hellothingif.LoginFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnFragmentInteractionListener) { mListener = (OnFragmentInteractionListener) context; } else {//from ww w . j a v a 2 s .c om throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener."); } }
From source file:org.deafsapps.sordomartinezpabloluismarspics.fragments.MainFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof Callback) { mListener = (Callback) context; } else {//from w w w .j a va 2 s .com throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener"); } }