[转]Android 启动第三方程序
本文转自:http://www.elexcon.com/news/55190.html
//启动媒体库
Intent i = new Intent();
ComponentName comp =
new ComponentName("com.Android.camera","com.android.camera.GalleryPicker");
i.setComponent(comp);
i.setAction("android.intent.action.VIEW");
startActivity(i);
//启动相机
Intent mIntent = new Intent();
ComponentName comp = new ComponentName("com.android.camera","com.android.camera.Camera");
mIntent.setComponent(comp);
mIntent.setAction("android.intent.action.VIEW");
startActivity(mIntent);
posted on 2011-09-30 16:55 freeliver54 阅读(1083) 评论(1) 编辑 收藏 举报