android编程中怎么调用设备上已安装的应用程序 小白跪求高手指导,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用intent 去call 对应的Activity android 4.0以上版本可以用以下两种方式,android4.0以下版本可以用第2中方式Intent intent = new Intent();ComponentName cn = new ComponentName(FILE_PACKAGE, FILE_PACKAGE_CLASS);startActivity(intent);或者//com.android.settings.usbStting.class 为包名+class名称Intent intent = new Intent(this,com.android.settings.usbStting.class);startActivity(intent); 很简单的,下面是我项目中的用法: ComponentName componentName = new ComponentName("cim.zhanhui.activity",// 包路径 "cim.zhanhui.activity.MainAct");// 要启动的Activity Intent intent = new Intent(); Bundle bundle = new Bundle(); bundle.putString("Parm_UserId", String.valueOf(STC_UserId)); bundle.putString("Parm_UserName", name); intent.putExtras(bundle); intent.setComponent(componentName); try { startActivity(intent); } catch (Exception e) { MyToast.show(R.string.notinstalled_ECGSoft);// 心电传输软件未安装 } TabHost每个选项卡的字体颜色怎么修改? 安卓用intent打开指定格式文件时该格式软件未安装的问题 Android广告讨论 求大侠帮忙 我想写个程序,一开程序就强制横屏,怎么布局啊 关于模拟同步下载,出了点状况 android怎么下载文件? 网络图片写进文件 Widget 控件横竖屏切换时失效 sos 关于listview的问题求助 在布局中,嵌套listView子布局 android能与电脑局域网吗? 安卓自定义数据库,在数据库里存放大量的题库,这样会不会扩大程序的内存,关于模拟考试的软件该怎么安排题库,是从xml上取得还是自定义数据库存放题库好呢?求解
Intent intent = new Intent();
ComponentName cn = new ComponentName(FILE_PACKAGE, FILE_PACKAGE_CLASS);
startActivity(intent);
或者
//com.android.settings.usbStting.class 为包名+class名称
Intent intent = new Intent(this,com.android.settings.usbStting.class);
startActivity(intent);
ComponentName componentName = new ComponentName("cim.zhanhui.activity",// 包路径
"cim.zhanhui.activity.MainAct");// 要启动的Activity Intent intent = new Intent();
Bundle bundle = new Bundle();
bundle.putString("Parm_UserId", String.valueOf(STC_UserId));
bundle.putString("Parm_UserName", name); intent.putExtras(bundle);
intent.setComponent(componentName); try
{
startActivity(intent);
}
catch (Exception e)
{
MyToast.show(R.string.notinstalled_ECGSoft);// 心电传输软件未安装
}