[转]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);

原文地址:https://www.cnblogs.com/freeliver54/p/2196691.html