android 打开电子市场中应用的界面


 //寻找某个应用 
 Uri uri = Uri.parse("market://search?q=pname:pkg_name"); 
Intent it = new Intent(Intent.ACTION_VIEW, uri); 
 startActivity(it); 
 //where pkg_name is the full package path for an application 
 
 //显示某个应用的相关信息 
 Uri uri = Uri.parse("market://details?id=app_id"); 
 Intent it = new Intent(Intent.ACTION_VIEW, uri); 
 startActivity(it); 
 //where app_id is the application ID, find the ID  
//by clicking on your application on Market home 
 //page, and notice the ID from the address bar

猜你喜欢

转载自zheyiw.iteye.com/blog/1744392