Because there are so many Android markets, the ability to score on each app market is not hard to achieve.
Private void gotorate () { = uri.parse ("market://details?id=" + Getpackagename ()); New Intent (Intent.action_view, URI); Try { startactivity (gotomarket); Catch (activitynotfoundexception e) { appcontext.getappcontext (). Showtoast ("The application market has not been installed, cannot be rated"); } }
The result of the above method is:
Click to go to score, the page pops up a list of all the app markets that the phone installs, and after you select an app market, the app opens the app market app. If the recommended food is on the market, you will automatically get to the referral page, otherwise the page won't be prompted to find the app.
For apps that have only one app market installed, they won't pop up the app market list and open the market directly.
For the default opener selected, the marketplace list will not pop up and open the default market directly. At this point, you can go to: Settings-(management) applications-Find the default app market-clear the default, and then click to go to the score has a list of applications.
Refer to a very useful blog: often go to learn haha, thank Bo Master to share
call App market in Android to score your app
Android app to apply the market scoring feature