I have Developed An Android App
in That I have Rate this App Dialog(Rate and cancel and Remind me later). once I click Rate button it will go to play store Id, but if I click remind me later button I need to set three days after remind how should I implement this reminder
code.
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(BookCompleteView.this);
alertDialogBuilder.setTitle("Monn Message");
alertDialogBuilder
.setMessage("If you Enjoy this App Please Rate this App")
.setCancelable(false)
.setPositiveButton("Rate",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int id) {
Uri uri = Uri.parse("market://details?id=" + BaseApplication.getInstance().getPackageName());
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |
Intent.FLAG_ACTIVITY_NEW_DOCUMENT |
Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
try {
startActivity(goToMarket);
} catch (ActivityNotFoundException e) {
startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse("http://play.google.com/store/apps/details?id=" + BaseApplication.getInstance().getPackageName())));
}
}
})
.setNegativeButton("No Thanks",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int id) {
dialog.cancel();
}
}).setNeutralButton("Remind Me Later", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// here i need to set three days after remind
}
});
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.show();