WEB开发网
开发学院手机开发Android 开发 Android 启动第三方程序 阅读

Android 启动第三方程序

 2010-04-19 16:10:00 来源:WEB开发网   
核心提示://启动媒体库Intent i = new Intent();ComponentName comp =new ComponentName("com.android.camera","com.android.camera.GalleryPicker");i.setComponent

//启动媒体库

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);

Tags:Android 启动 第三方

编辑录入:coldstar [复制链接] [打 印]
赞助商链接