List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:me.philio.disqus.AuthorizeFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w w w . j a v a 2 s . c o m mListener = (AuthorizeListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement AuthorizeCallback"); } }
From source file:com.finlay.geomonsters.battle.ChooseCreatureDialog.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // verify host implements callback interface try {//from w w w . ja v a 2s . c o m mListener = (ChooseCreatureDialogListener) activity; } catch (ClassCastException e) { Log.e(TAG, activity.toString() + " must implement NoticeDialogListener"); } }
From source file:com.cerema.cloud2.ui.fragment.FileFragment.java
/** * {@inheritDoc}// w w w . jav a2s .co m */ @Override public void onAttach(Activity activity) { super.onAttach(activity); try { mContainerActivity = (ContainerActivity) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + ContainerActivity.class.getSimpleName()); } }
From source file:com.deliciousdroid.fragment.BrowseBundlesFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w w w . ja v a 2 s. c o m bundleSelectedListener = (OnBundleSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnBundleSelectedListener"); } }
From source file:com.nbplus.vbroadlauncher.fragment.RegisterFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*ww w . ja va2s . c om*/ ((HomeLauncherActivity) getActivity()).registerActivityInteractionListener(this); } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:org.jamienicol.episodes.SelectBackupDialog.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from ww w.jav a 2s . c o m*/ onBackupSelectedListener = (OnBackupSelectedListener) activity; } catch (ClassCastException e) { final String message = String.format("%s must implement OnBackupSelectedListener", activity.toString()); throw new ClassCastException(message); } }
From source file:com.deliciousdroid.fragment.BrowseTagsFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/* w w w .j a v a2s . co m*/ tagSelectedListener = (OnTagSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnTagSelectedListener"); } }
From source file:com.nikhilnayak.games.octoshootar.ui.dialogfragments.CraftRequestDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (activity instanceof CraftRequestDialogFragment.Listener) { mListener = (CraftRequestDialogFragment.Listener) activity; } else {/* www . j a v a 2 s .c o m*/ throw new ClassCastException( activity.toString() + " must implemenet CraftRequestDialogFragment.Listener"); } }
From source file:jp.co.conit.sss.sp.ex1.fragment.BookViewerFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w ww. j av a 2 s . c om mOnCancelLoadLisntener = (OnCancelLoadLisntener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnCancelLoadLisntener"); } }
From source file:com.mstar.tv.tvplayer.philips.option.OptionThirdFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//w ww . ja v a2s . c o m mCallback = (ThreeFragmentSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnHeadlineSelectedListener"); } }