Back to project page interamap.
The source code is released under:
MIT License
If you think the Android project interamap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.richso.interamap; // w w w . ja v a2s .c o m import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v4.app.FragmentActivity; import com.richso.interamap.dialogue.WarningDialog; import com.richso.interamap.utils.Constant; /** * Created with IntelliJ IDEA. * User: nikolai * Date: 9/23/13 * Time: 3:32 PM * To change this template use File | Settings | File Templates. */ public class BaseActivity extends FragmentActivity implements WarningDialog.DialogListener{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } private void initViews() { } @Override public void onDialogNeutralClick(DialogFragment dialogFragment) { dialogFragment.dismiss(); } @Override public void onDialogPositiveClick(DialogFragment dialogFragment) { BaseActivity.this.finish(); } @Override public void onDialogNegativeClick(DialogFragment dialogFragment) { dialogFragment.dismiss(); } @Override public void showWarningDialog(int title, int message, int positiveBtn, int neutralBtn, int negativeBtn) { DialogFragment dialogFragment = new WarningDialog( title, message, positiveBtn, neutralBtn, negativeBtn); dialogFragment.show(getSupportFragmentManager(), Constant.DialogFragmentTag.defaultDialog); } }