Android Intent用法汇总(3)
来源:未知 责任编辑:责任编辑 发表时间:2014-01-26 21:59 点击:次
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
//Uninstall 应用程序
Uri uri = Uri.fromParts("package", strPackageName, null);
Intent it = new Intent(Intent.ACTION_DELETE, uri);
本文出自“sunney2012”
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>