CopyPastor

Detecting plagiarism made easy.

Score: 0.8071532249450684; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-06-04
by Kishan Viramgama

Original Post

Original - Posted on 2012-05-30
by miguel.rodelas



            
Present in both answers; Present only in the new answer; Present only in the old answer;

**Open Android app to google play store**
Uri uri = Uri.parse("market://details?id=" + getApplication().getPackageName()); Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri); // To count with Play market backstack, After pressing back button, // to taken back to our application, we need to add following flags to intent. 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=" + getApplication().getPackageName()))); }
I open the Play Store from my App with the following code:
Uri uri = Uri.parse("market://details?id=" + context.getPackageName()); Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri); // To count with Play market backstack, After pressing back button, // to taken back to our application, we need to add following flags to intent. 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=" + context.getPackageName()))); }
This will launch the Play Store with your App page already opened. The user can rate it there.

        
Present in both answers; Present only in the new answer; Present only in the old answer;