天天看點

Android跳轉到應用下載下傳平台,給目前APP評分

try {
    Uri uri = Uri.parse("market://details?id="
      + context.getPackageName());//需要評分的APP包名
    Intent intent5 = new Intent(Intent.ACTION_VIEW, uri);
    intent5.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent5);
   } catch (Exception e) {
    // TODO Auto-generated catch block

    Toast.makeText(getActivity(), R.string.notappstore, 0).show();
   }