List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:edu.teco.context.ui.Tab2Fragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (FrameworkContext.DEBUG) Log.d(TAG, "tab2 attached"); try {/*from w w w. j a va 2 s . c om*/ mFragmentControlsListener = (IFragmentControlsListener) activity; } catch (ClassCastException e) { if (FrameworkContext.WARN) Log.w(TAG, (activity.toString() + " must implement IFragmentControlsListener")); } }
From source file:edu.teco.context.ui.Tab4Fragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (FrameworkContext.DEBUG) Log.d(TAG, "tab4 attached"); try {/*from w ww . j a v a 2 s . com*/ mFragmentControlsListener = (IFragmentControlsListener) activity; } catch (ClassCastException e) { if (FrameworkContext.WARN) Log.w(TAG, (activity.toString() + " must implement IFragmentControlsListener")); } }
From source file:org.anhonesteffort.flock.ImportOtherAccountFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (activity instanceof SetupActivity) this.setupActivity = (SetupActivity) activity; else//from w ww .j a v a2s .c om throw new ClassCastException(activity.toString() + " not what I expected D: !"); if (messageHandler == null) messageHandler = new MessageHandler(setupActivity, this); else { messageHandler.setupActivity = setupActivity; messageHandler.importFragment = this; } }
From source file:org.sensapp.android.sensappdroid.fragments.MeasureListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/* w w w . ja v a 2s. com*/ measureSelectedListener = (OnMeasureSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnMeasureSelectedListener"); } }
From source file:com.franceaoc.app.ui.fragment.NearestCommunesListFragment.java
/** * {@inheritDoc }/*from www . j av a2 s . co m*/ */ @Override public void onAttach(Activity activity) { super.onAttach(activity); try { // check that the containing activity implements our callback mContainerCallback = (CommuneListEventsCallback) activity; mActivity = activity; } catch (ClassCastException e) { activity.finish(); throw new ClassCastException(activity.toString() + " must implement AppListEventsCallback"); } }
From source file:com.appdynamics.demo.gasp.fragment.PlayServicesDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from ww w .j a v a 2 s .co m // Instantiate the NoticeDialogListener so we can send events to the host PlayServicesDialogListener mListener = (PlayServicesDialogListener) activity; } catch (ClassCastException e) { // The activity doesn't implement the interface, throw exception throw new ClassCastException(activity.toString() + " must implement PlayServicesDialogListener"); } }
From source file:com.dabay6.android.apps.carlog.ui.base.fragments.BaseEditFragment.java
/** * {@inheritDoc}// w w w . j a va 2s . c om */ @Override public void onAttach(final Activity activity) { super.onAttach(activity); try { onEntityEditListener = (OnEntityEditListener) activity; } catch (final ClassCastException ex) { throw new ClassCastException(activity.toString() + " must implement OnEntityEditListener"); } }
From source file:edu.stanford.mobisocial.dungbeetle.ui.fragments.FeedListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from w w w . j a va2 s .c o m*/ mFeedSelectedListener = (OnFeedSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFeedSelectedListener"); } }
From source file:com.sandklef.coachapp.fragments.MemberFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// w w w .ja v a 2s. c om mListener = (MemberInteractionListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:com.acrylicgoat.bcponline.fragments.CPListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); sherActivity = (FragmentActivity) activity; try {// ww w . jav a2 s. c om ddgSelectedListener = (OnDDGSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnDDGSelectedListener"); } }