Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器 软件资源

软件开发小程序制作系统集成与运维空间租用硬件开发视频监控技术咨询与支持——联系电话:0311-88999002/88999003

首页 / 操作系统 / Linux / Android应用程序中启动另一个应用程序

启动自己写的Android应用程序
  1. 前名一个参数是应用程序的包名,后一个是这个应用程序的主Activity名  
  2.  Intent intent=new Intent();  
  3.  intent.setComponent(new ComponentName("com.droidnova.android.games.vortex",   
  4.                                                      "com.droidnova.android.games.vortex.Vortex"));  
  5.  startActivity(intent); 

启动系统自带的应用程序
  1. Intent intent=new Intent();  
  2. intent.setComponent(new ComponentName("com.android.calendar", "com.android.calendar.LaunchActivity"));  
  3. startActivity(intent);