List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:com.inovex.zabbixmobile.activities.fragments.ChecksApplicationsFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// ww w.j a va2 s. c o m mCallbackMain = (OnChecksItemSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnChecksItemSelectedListener."); } }
From source file:dtu.ds.warnme.app.location.FollowMeLocationSource.java
public FollowMeLocationSource(Activity activity, Context context, GoogleMap map) { this.context = context; this.map = map; try {/* w w w . jav a2 s .co m*/ locationSourceListener = (FollowMeLocationSourceListener) activity; } catch (ClassCastException ex) { throw new ClassCastException(activity.toString() + " must implement FollowMeLocationSource"); } init(); }
From source file:com.itime.team.itime.fragments.InputDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // Verify that the host activity implements the callback interface try {/*from ww w. j av a 2 s .com*/ // Instantiate the NoticeDialogListener so we can send events to the host mListener = (InputDialogListener) activity; } catch (ClassCastException e) { // The activity doesn't implement the interface, throw exception throw new ClassCastException(activity.toString() + " must implement InputDialogListener"); } }
From source file:it.iziozi.iziozi.gui.IOBoardFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from w w w. j av a 2 s . c om*/ mListener = (OnBoardFragmentInteractionListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnFragmentInteractionListener"); } Log.d(LOG_TAG, "on attach!"); }
From source file:de.msal.shoutemo.ui.chat.ChatFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from w w w.j a va2s .c om*/ mCallback = (TitleSetListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnHeadlineSelectedListener"); } }
From source file:com.armtimes.drawer.CommonFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from ww w. ja v a 2 s. c om*/ mListener = (IFragmentListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement OnFragmentInteractionListener Interface"); } }
From source file:com.rp.podemu.BaudRateDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // Verify that the host activity implements the callback interface try {/*from w ww . j a v a 2 s . c om*/ // Instantiate the NoticeDialogListener so we can send events to the host mListener = (BaudRateDialogListener) activity; } catch (ClassCastException e) { // The activity doesn't implement the interface, throw exception throw new ClassCastException(activity.toString() + " must implement BaudRateDialogFragment"); } }
From source file:com.bangz.smartmute.RulelistFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); ((BaseActivity) activity).onSectionAttached(getArguments().getInt(ARG_SECTION_NUMBER)); try {/*from w w w . ja v a 2 s . co m*/ mRuleItemSelectedListerner = (OnRuleItemClickListerner) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnRuleItemClickListerner."); } }
From source file:com.rp.podemu.ControlledAppDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); // Verify that the host activity implements the callback interface try {//from w w w .j av a 2 s . co m // Instantiate the NoticeDialogListener so we can send events to the host mListener = (ControlledAppDialogListener) activity; } catch (ClassCastException e) { // The activity doesn't implement the interface, throw exception throw new ClassCastException(activity.toString() + " must implement ControlledAppDialogListener"); } }
From source file:es.glasspixel.wlanaudit.fragments.ScanFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// w ww.ja v a2 s . c o m mCallback = (ScanFragmentListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnNetworkSelectedListener"); } }