Android Open Source - RateMyApp Send Email Dialog

From Project

Back to project page RateMyApp.


The source code is released under:

MIT License

If you think the Android project RateMyApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mariosangiorgio.ratemyapp.dialogs;
//from w w  w. ja v  a2  s . co m
import android.content.Context;
import android.os.Bundle;

import com.mariosangiorgio.ratemyapp.ContextUtils;
import com.mariosangiorgio.ratemyapp.R;

public class SendEmailDialog extends AbstractDialogFragment {

    public Dialog onCreateDialog(Bundle savedInstanceState) {
        Context context = getActivity();

        AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context);
        dialogBuilder.setTitle(context.getString(R.string.rate) + " " + ContextUtils.getApplicationName(context));
        dialogBuilder.setPositiveButton(context.getString(R.string.send_email), this);
        dialogBuilder.setNegativeButton(context.getString(R.string.not_now), this);
        return dialogBuilder.create();

Java Source Code List