Many Android apps have a feature that scores for us, that is, click to open the relevant app in the app market details page.
In fact, this feature is very simple to implement.
Open the App details page
try {Intent i = new Intent (Intent _view) ; I.setdata (Uri.parse (" market://details?id= " +getpackagename ()) StartActivity (i) } catch (Exception e) {toast.maketext (Settingactivity.this , " The Android app market is not installed on your phone ", Toast _short) .show () E.printstacktrace () }
The Getpackagename () above is the name of the package you have applied to yourself.
Find apps in the app market
try { new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse("market://search?q=pub:Your Publisher Name")); startActivity(i); catch (Exception e) { "您的手机上没有安装Android应用市场", Toast.LENGTH_SHORT).show(); e.printStackTrace(); }
The ability to open the app market in Android