List of usage examples for android.app Activity toString
@Override
public String toString()
From source file:com.nikhilnayak.games.octoshootar.ui.dialogfragments.InventoryItemEntryDetailDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (activity instanceof InventoryCraftListener) { mListener = (InventoryCraftListener) activity; } else {//from ww w . jav a 2s. com throw new ClassCastException(activity.toString() + " must implement InventoryCraftListener"); } }
From source file:com.piusvelte.cloudset.android.AccountsFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {// ww w .j av a2s. c om callback = (AccountsListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement AccountsListener"); } }
From source file:com.mifos.mifosxdroid.core.MifosBaseFragment.java
@SuppressWarnings("deprecation") @Override// www . j a v a2s . co m public void onAttach(Activity activity) { super.onAttach(activity); this.activity = activity; try { callback = (BaseActivityCallback) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement " + "BaseActivityCallback"); } }
From source file:com.secretparty.app.PartyCreationDialog.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/* w ww .j a va 2 s .co m*/ mCallback = (FragmentEvent.PartyCreatedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement ThematicManager"); } }
From source file:com.secretparty.app.ThematicFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from www.j ava 2 s . c o m mCallback = (FragmentEvent.ThematicSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnHeadlineSelectedListener"); } }
From source file:br.com.bioscada.apps.biotracks.fragments.ChooseAccountDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from ww w .j a v a 2s .c om caller = (ChooseAccountCaller) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + ChooseAccountCaller.class.getSimpleName()); } }
From source file:com.akhbulatov.wordkeeper.ui.dialog.WordEditorDialog.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {//from www. j av a2 s . c om mListener = (WordEditorDialogListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement " + WordEditorDialogListener.class.getName()); } }
From source file:com.mifos.mifosxdroid.online.SurveyQuestionFragment.java
@Override public void onAttach(Context context) { super.onAttach(context); Activity activity = context instanceof Activity ? (Activity) context : null; try {/* w ww . j av a 2 s . com*/ mCallback = (OnAnswerSelectedListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnAnswerSelectedListener"); } }
From source file:de.azapps.mirakel.new_ui.fragments.TasksFragment.java
@Override public void onAttach(final Activity activity) { super.onAttach(activity); try {/* w w w .j av a 2s.c om*/ mListener = (OnTaskSelectedListener) activity; } catch (final ClassCastException e) { Log.e(TAG, activity.toString() + " must implement OnArticleSelectedListener", e); throw new ClassCastException(activity.toString() + " must implement OnArticleSelectedListener"); } }
From source file:com.battlelancer.seriesguide.ui.dialogs.AddDialogFragment.java
@Override public void onAttach(Activity activity) { super.onAttach(activity); try {/*from w w w. j a v a2s . c o m*/ mListener = (OnAddShowListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnAddShowListener"); } }