Jump to the app store app details

The API for jumping to the app details page in the App Store

Note: available for App Store V3.5 or above. For App Store V6.2.6 or above, apps will be automatically updated when the user jumps to the app details page.

String packageName = "the package name of the app to be opened";
boolean isUpdate=false;//If an update is required: true - auto update, false - not to update by default
String uri = String.format("market://woyou.market/appDetail?packageName=%s&isUpdate=%s
",packageName,isUpdate);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

The API for jumping to the app review

Note: available for App Store V5.0.5 or above.

String packageName = "the package name of the app to be opened";
boolean type=false;//true 
String uri = String.format("market://woyou.market/appComment?packageName=%s&type=%s
",packageName,type);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);