List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:org.openaccessbutton.openaccessbutton.advocacy.AdvocacyFragment.java
License:asdf
public void onAttach(Activity activity) { super.onAttach(activity); try {/* w w w . j a va2 s . c o m*/ mCallback = (OnShareIntentInterface) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnShareIntentInterface"); } }
From source file:br.com.bioscada.apps.biotracks.fragments.ChooseActivityTypeDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*ww w. j a v a 2 s. c o m*/ caller = (ChooseActivityTypeCaller) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + ChooseActivityTypeCaller.class.getSimpleName()); } }
From source file:edu.teco.context.ui.Tab3Fragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (FrameworkContext.DEBUG) Log.d(TAG, "tab3 attached"); try {/*from www . j a v a2s.c o m*/ mFragmentControlsListener = (IFragmentControlsListener) activity; } catch (ClassCastException e) { if (FrameworkContext.WARN) Log.w(TAG, (activity.toString() + " must implement IFragmentControlsListener")); } }
From source file:io.github.romankl.bitcoinvalue.ui.fragment.CurrencyListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from w ww . j a va 2 s .c o m*/ mListener = (OnCurrencyInteractionListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:info.wncwaterfalls.app.SearchHikeFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // Make sure the containing activity implements the search listener interface try {//from w w w. j a v a2 s .c o m sListener = (OnHikeSearchListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnHikeSearchListener"); } }
From source file:org.gnucash.android.ui.passcode.KeyboardFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*w ww . ja va 2 s .com*/ listener = (OnPasscodeEnteredListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + KeyboardFragment.OnPasscodeEnteredListener.class); } }
From source file:org.sensapp.android.sensappdroid.fragments.GraphsListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from www. j av a 2s. c o m*/ graphSelectedListener = (OnGraphSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnMeasureSelectedListener"); } }
From source file:br.com.bioscada.apps.biotracks.fragments.ShareTrackDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*w w w .j a va 2 s . c o m*/ caller = (ShareTrackCaller) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + ShareTrackCaller.class.getSimpleName()); } }
From source file:com.ota.updates.fragments.AboutFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); mContext = activity.getApplicationContext(); try {/* w w w . ja va 2s .c o m*/ mListener = (FragmentInteractionListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFragmentInteractionListener"); } }
From source file:org.iisgcp.waterwalk.fragment.PointOfInterestGridViewPagerFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from w w w.j a v a 2s . c o m mListener = (OnPageSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnPageSelectedListener"); } }