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.
package com.mariosangiorgio.ratemyapp.dialogs; //from w ww . jav a 2 s . c o m import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import com.mariosangiorgio.ratemyapp.ContextUtils; import com.mariosangiorgio.ratemyapp.R; public class NumberOfStarsDialog extends AbstractDialogFragment { @Override 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(R.string.value_store, this); dialogBuilder.setNegativeButton(R.string.value_email, this); dialogBuilder.setMessage(R.string.rate_score); return dialogBuilder.create(); } }