Intent intent =
new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
ComponentName cn =
new
ComponentName("com.android.gallery",
"com.android.camera.GalleryPicker");
intent.setComponent(cn);
startActivity(intent); |
临时
最新推荐文章于 2025-04-02 16:10:05 发布
本文介绍了一种通过Intent启动Android设备上特定应用GalleryPicker的方法。使用ComponentName指定目标组件,并通过setComponent方法设置Intent,最终调用startActivity来启动目标应用。
1812

被折叠的 条评论
为什么被折叠?



