1

I have the rate app button in the app which lunches Play Store application where the user can rate my app. I'm using standard code:

        try {
            String appPackageName = getPackageName();
            Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName));
            startActivity(marketIntent);
        } catch (Exception e) {

        }

The problem is that from time to time (but not every time), Play Store application closes after few seconds and the phone returns to my application. In this case the user won't manage to rate my app.

Edit

I'm extending SherlockFragmentActivity, using ViewPager and Admob banner. I think it can be conncted with some of them.

AppiDevo
  • 3,195
  • 3
  • 33
  • 51

1 Answers1

0

Try with this

 Context.startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("market://details?id=" +  appPackageName)));
Metalhead1247
  • 1,978
  • 1
  • 17
  • 28