In the software we often use, we can often see in the Software settings interface, there is a function that is to go to the scoring function, as long as we click "to score" will call the mobile phone app market software. At first I thought that the implementation of this feature is to traverse the entire phone package name, to match the market most of the application market software, this method is very troublesome. After the study, it was found that this function is very easy to implement.
With four lines of code, you can call out all the app markets installed on your phone.
The code is as follows:
Uri uri = uri.parse ("market://details?id=" +getpackagename ());
Intent Intent = new Intent (Intent.action_view,uri);
Intent.addflags (Intent.flag_activity_new_task);
StartActivity (Intent);
Believe it or not? Do not believe hurriedly try, believe the hurriedly collection and share it, convenient to keep for later use.
Android call app market in mobile phone, go to scoring function realization