List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:app.com.vaipo.ContactsFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // This makes sure that the container activity has implemented // the callback interface. If not, it throws an exception try {// w w w. j a v a2s .co m mCallback = (ContactsListenerAction) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement LogoutUser"); } }
From source file:com.deliciousdroid.fragment.ViewBookmarkFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from www . j a v a2 s . c om*/ bookmarkActionListener = (OnBookmarkActionListener) activity; bookmarkSelectedListener = (OnBookmarkSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnBookmarkActionListener and OnBookmarkSelectedListener"); } }
From source file:edu.chalmers.dat255.audiobookplayer.view.PlayerFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); boolean ownerImplementsEvents = true; try {/* w ww . java 2 s . c om*/ fragmentOwner = (IPlayerEvents) activity; } catch (ClassCastException e) { ownerImplementsEvents = false; } if (!ownerImplementsEvents) { throw new ClassCastException( activity.toString() + " does not implement " + IPlayerEvents.class.getName()); } }
From source file:com.google.android.apps.santatracker.village.Village.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/* w ww . jav a 2 s . co m*/ mCallback = (VillageListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + "must implement VillageInterface."); } }
From source file:edu.cmu.cylab.starslinger.view.ComposeFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from w w w .j av a2s . co m*/ mResult = (OnComposeResultListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + OnComposeResultListener.class.getSimpleName()); } }
From source file:com.anstar.fieldwork.CaptureSignatureFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // This makes sure that the container activity has implemented // the callback interface. If not, it throws an exception try {/*from www . j a v a 2 s .c o m*/ mCaptureSignatureFragmentListener = (CaptureSignatureFragmentListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement CaptureSignatureFragmentListener"); } }
From source file:io.mpos.ui.shared.view.SummaryFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from ww w . j a v a2s . c o m*/ mInteractionActivity = (Interaction) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement SummaryInteractionListener"); } }
From source file:com.syncedsynapse.kore2.ui.TVShowEpisodeListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// w w w.ja v a2s .co m listenerActivity = (OnEpisodeSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnEpisodeSelectedListener"); } }
From source file:com.morlunk.mumbleclient.servers.PublicServerListFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// w w w.j a va 2s . co m mConnectHandler = (FavouriteServerListFragment.ServerConnectHandler) activity; mDatabaseProvider = (DatabaseProvider) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement ServerConnectHandler and DatabaseProvider!"); } }
From source file:com.androzic.MapList.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // This makes sure that the container activity has implemented // the callback interface. If not, it throws an exception try {/*from w w w. j a v a 2 s. c om*/ mapActionsCallback = (OnMapActionListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnMapActionListener"); } }