List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:com.piusvelte.cloudset.android.ActionsFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// ww w .ja v a2s. c o m callback = (ActionsListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement ActionsListener"); } }
From source file:com.battlelancer.seriesguide.ui.FirstRunFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from ww w. j av a 2s .com*/ mListener = (OnFirstRunDismissedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFirstRunDismissedListener"); } }
From source file:com.piusvelte.imgpagur.ImgList.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w ww . j a v a 2s .co m callback = (ImgListListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement AccountsListener"); } }
From source file:com.royclarkson.springagram.GalleryAddFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// www. j a v a 2 s . c o m galleryAddFragmentListener = (GalleryAddFragmentListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement GalleryAddFragmentListener"); } }
From source file:com.nikhilnayak.games.octoshootar.ui.fragments.LeaderboardChooserFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (activity instanceof GameScoreFragment.Listener) { mListener = (LeaderboardChooserFragment.Listener) activity; } else {//from w w w . jav a 2s. c o m throw new ClassCastException( activity.toString() + " must implement LeaderboardChooserFragment.Listener"); } }
From source file:com.piusvelte.webcaster.MediaListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*w w w . j a va2 s.co m*/ callback = (Listener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString()); } }
From source file:com.mifos.mifosxdroid.online.LoanRepaymentScheduleFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w ww .j a v a2 s . c om // mListener = (OnFragmentInteractionListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:com.pindroid.fragment.SelectTagsFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from www . j a v a 2 s . c o m*/ tagsSelectedListener = (OnTagsSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnTagSelectedListener"); } }
From source file:com.kylebeal.datedialogfragment.example.DateDetailFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from www . j ava2 s. c o m mButtonListener = (DateDetailFragmentButtonListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement DateDetailFragmentButtonListener in Activity"); } }
From source file:fr.simon.marquis.preferencesmanager.ui.RestoreDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/* ww w.j a v a 2 s. c o m*/ listener = (OnRestoreFragmentInteractionListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement OnRestoreFragmentInteractionListener"); } }