不确定酷市场后期是否还会该包名或者路径,目前的7.9 版本测试通过.
private void gotoCoolapkMarket() {try {Intent intent = new Intent(Intent.ACTION_VIEW);intent.setData(Uri.parse("market://details?id=" + getPackageName()));intent.setClassName("com.coolapk.market", "com.coolapk.market.view.app.AppViewActivity");startActivity(intent);} catch (Exception e) {e.printStackTrace();putString(this, getPackageName());Toast.makeText(this, "自动跳转失败,名称已复制,请手动打开酷市场粘贴搜索.", Toast.LENGTH_LONG).show();Intent intent = new Intent(Intent.ACTION_VIEW);intent.setData(Uri.parse("market://details?id=" + getPackageName()));startActivity(intent);}}