android跳转到市场进行评价 market://search?q

//Market 相关 
        //寻找某个应用  
        Uri uri = Uri.parse("market://search?q=pname:pkg_name");  
        Intent it = new Intent(Intent.ACTION_VIEW, uri);   
        startActivity(it);   
        //程序包名称是完整的包路径的应用程序
 
        //显示某个应用的相关信息  
        Uri uri = Uri.parse("market://details?id=app_id");   
        Intent it = new Intent(Intent.ACTION_VIEW, uri);  
        startActivity(it);   
        //  其中APP_ID是应用程序ID,发现市场上的应用程序主页上点击ID,并注意从地址栏的ID  

详细可以查看http://developer.android.com/distribute/googleplay/promote/linking.html

例子如下:

Uri uri=Uri.parse("market://details?id=com.example.sun");
Intent intent=new Intent(Intent.ACTION_VIEW,uri);
startActivity(intent);

就会跳转到安装的市场中某个应用的界面   com.example.sun就是你应用的包名

posted @ 2012-10-23 14:46  奇迹天下  Views(2565)  Comments(0Edit  收藏  举报