List of usage examples for android.content Context toString
public String toString()
From source file:com.scooter1556.sms.android.fragment.MediaFolderFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); try {// www. j ava 2 s .c om mediaFolderListener = (MediaFolderListener) context; } catch (ClassCastException e) { throw new ClassCastException(context.toString() + " must implement MediaFolderListener"); } }
From source file:augsburg.se.alltagsguide.page.PageOverviewFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); try {//from w ww . j av a 2s . com mListener = (OnPageFragmentInteractionListener) context; } catch (ClassCastException e) { throw new ClassCastException(context.toString() + " must implement OnPageFragmentInteractionListener"); } }
From source file:ru.androidtest.ui.fragments.ExpandableRecyclerListViewFragment.java
@TargetApi(23) @Override//from w w w. j a v a 2s . com public void onAttach(Context context) { super.onAttach(context); try { mListener = (OnInteractionListener) context; } catch (ClassCastException e) { throw new ClassCastException(context.toString() + " must implement OnInteractionListener"); } }
From source file:com.microsoft.identity.client.sample.GraphDataFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnFragmentInteractionListener) { mListener = (OnFragmentInteractionListener) context; } else {/* w w w. j av a 2s . c o m*/ throw new IllegalStateException(context.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:com.readystatesoftware.chuck.internal.ui.TransactionListFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnListFragmentInteractionListener) { listener = (OnListFragmentInteractionListener) context; } else {//from www . j a va 2 s . c o m throw new RuntimeException(context.toString() + " must implement OnListFragmentInteractionListener"); } }
From source file:com.dudka.rich.streamingmusicplayer.FragmentMusicPlayerUI.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnFragmentInteractionListener) { mListener = (OnFragmentInteractionListener) context; } else {//ww w . j av a 2 s . co m throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener"); } mActivity = (Activity) context; }
From source file:nz.al4.airclock.AirClockFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnTouchListener) { mListener = (OnTouchListener) context; } else {/*from www. jav a 2 s . c o m*/ throw new RuntimeException(context.toString() + " must implement OnTouchListener"); } }
From source file:ch.berta.fabio.popularmovies.presentation.ui.fragments.MovieDetailsBaseFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); try {/* w w w . j a v a 2s .c om*/ mActivity = (FragmentInteractionListener) context; } catch (ClassCastException e) { throw new ClassCastException(context.toString() + " must implement FragmentInteractionListener"); } }
From source file:com.github.runoshun.in_app_survey.ui.SurveyFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof InteractionListener) { interactionListener = (InteractionListener) context; } else {/*from w w w. ja v a2s .c o m*/ throw new IllegalArgumentException(context.toString() + " must be implement InteractionListener"); } }
From source file:nl.thehyve.transmartclient.fragments.AddNewServerFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); try {//from w ww . j av a 2 s. c o m mListener = (OnFragmentInteractionListener) context; menuListener = (MenuListener) context; } catch (ClassCastException e) { throw new ClassCastException( context.toString() + " must implement OnFragmentInteractionListener" + " and MenuListener"); } }