List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:com.learnNcode.mediachooser.fragment.VideoFragment.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 ww . j a v a 2 s.c o m*/ mCallback = (OnVideoSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnHeadlineSelectedListener"); } }
From source file:org.akvo.flow.ui.fragment.MapFragment.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 {// www. j ava 2 s . c om mListener = (RecordListListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement SurveyedLocalesFragmentListener"); } }
From source file:com.christophergs.mbientbasic.BothFragment.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 va 2 s . co m*/ mCallback = (OnFragTestListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFragTestListener"); } }
From source file:com.dazone.crewchat.libGallery.fragment.ImageFragment.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 ww. java2s . c om*/ mCallback = (OnImageSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnImageSelectedListener"); } }
From source file:com.QuarkLabs.BTCeClient.fragments.HomeFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// ww w . j av a 2s. co m mCallback = (ActivityCallbacks) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement ActivityCallbacks"); } }
From source file:com.aikidonord.fragments.FragmentDate.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 {// ww w.jav a 2 s . co m mCallback = (OnDateSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnLieuSelectedListener"); } }
From source file:com.aikidonord.fragments.FragmentLieu.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 va2s.c o m*/ mCallback = (OnLieuSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnLieuSelectedListener"); } }
From source file:com.aikidonord.fragments.FragmentType.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 a 2s . c o m*/ mCallback = (OnTypeSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnLieuSelectedListener"); } }
From source file:com.ti.omap.android.multidispapp.photo.PrimaryPhotoFragment.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 ww w . j a va2s. c om*/ mCommandCallback = (OnCommandListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnHeadlineSelectedListener"); } }
From source file:com.syncedsynapse.kore2.ui.hosts.HostFragmentManualConfiguration.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/* www. j ava 2s. c o m*/ listener = (HostManualConfigurationListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement AddHostManualConfigurationListener interface."); } }