I am currently developing an application in Android Where I want to give some functionality to user to rate the current application. Their will be a button on it's click it will ask ask whether user want to rate the application or not? If yes will will go to market application on device to rate application (Market should show this application.) or it will open browser which will load market & showing this application. Any one used this kind of functionality before. Please provide some help.
Thank You.
I always use a method like this one:
private void launchMarket() {
Uri uri = Uri.parse("market://details?id=" + getPackageName());
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
try {
startActivity(goToMarket);
} catch (ActivityNotFoundException e) {
Toast.makeText(this, R.string.couldnt_launch_market, Toast.LENGTH_LONG).show();
}
}