当前位置: 代码迷 >> Android >> android跳转到应用市场开展软件评论和评分
  详细解决方案

android跳转到应用市场开展软件评论和评分

热度:101   发布时间:2016-04-28 05:49:34.0
android跳转到应用市场进行软件评论和评分
1、【跳转到市场进行评分】
		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);



2、【市场内搜索】
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setData(Uri.parse("market://search?q=pub:Your Publisher Name"));startActivity(intent); 


3、【分享】
Intent sendIntent = new Intent();		sendIntent.setAction(Intent.ACTION_SEND);		sendIntent.setType("text/*");		sendIntent.putExtra(Intent.EXTRA_TEXT, contentEditText.getText().toString());		startActivity(sendIntent);

  相关解决方案